home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-15 | 27.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Nov 15 15:45:04 1994, modified Tue Nov 15 15:45:04 1994, creator Think C, type ASCII, 27533 bytes "cvnetcnv.c" , at 0x6c0d 504 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 63 76 6e 65 74 63 | 6e 76 2e 63 00 00 00 00 |..cvnetc|nv.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 6b 8d 00 | 00 01 f8 aa ee ce 50 aa |.....k..|......P.|
|00000060| ee ce 50 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..P.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8d f9 00 00 |........|........|
|00000080| 2f 2a 20 63 76 6e 65 74 | 63 6e 76 2e 63 20 2d 20 |/* cvnet|cnv.c - |
|00000090| 43 56 4e 65 74 20 6d 61 | 73 74 65 72 20 6d 65 6d |CVNet ma|ster mem|
|000000a0| 62 65 72 20 6c 69 73 74 | 20 66 6f 72 6d 61 74 20 |ber list| format |
|000000b0| 63 6f 6e 76 65 72 74 65 | 72 2e 0d 20 20 20 54 68 |converte|r.. Th|
|000000c0| 69 73 20 70 72 6f 67 72 | 61 6d 20 63 6f 6e 76 65 |is progr|am conve|
|000000d0| 72 74 73 20 43 56 4e 65 | 74 20 6d 61 73 74 65 72 |rts CVNe|t master|
|000000e0| 20 6d 65 6d 62 65 72 20 | 6c 69 73 74 20 69 6e 74 | member |list int|
|000000f0| 6f 20 6f 74 68 65 72 20 | 64 61 74 61 20 66 6f 72 |o other |data for|
|00000100| 6d 61 74 73 0d 09 73 75 | 69 74 61 62 6c 65 20 66 |mats..su|itable f|
|00000110| 6f 72 20 69 6d 70 6f 72 | 74 69 6e 67 20 69 6e 74 |or impor|ting int|
|00000120| 6f 20 61 20 76 61 72 69 | 65 74 79 20 6f 66 20 64 |o a vari|ety of d|
|00000130| 61 74 61 62 61 73 65 20 | 70 72 6f 67 72 61 6d 73 |atabase |programs|
|00000140| 2e 0d 09 42 79 20 64 65 | 66 69 6e 69 6e 67 20 74 |...By de|fining t|
|00000150| 68 65 20 64 65 73 69 72 | 65 64 20 6f 75 74 70 75 |he desir|ed outpu|
|00000160| 74 20 66 6f 72 6d 61 74 | 20 69 6e 20 66 69 6c 65 |t format| in file|
|00000170| 20 22 63 76 6e 65 74 63 | 6e 76 2e 66 6d 74 22 0d | "cvnetc|nv.fmt".|
|00000180| 09 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |.in the |current |
|00000190| 64 69 72 65 63 74 6f 72 | 79 2c 20 74 68 65 20 70 |director|y, the p|
|000001a0| 72 6f 67 72 61 6d 20 63 | 61 6e 20 62 65 20 63 75 |rogram c|an be cu|
|000001b0| 73 74 6f 6d 69 7a 65 64 | 20 66 6f 72 0d 09 6e 65 |stomized| for..ne|
|000001c0| 61 72 6c 79 20 61 6c 6c | 20 6b 69 6e 64 73 20 6f |arly all| kinds o|
|000001d0| 66 20 66 6f 72 6d 61 74 | 20 63 6f 6e 76 65 72 73 |f format| convers|
|000001e0| 69 6f 6e 20 6e 65 65 64 | 73 2e 20 20 46 6f 72 6d |ion need|s. Form|
|000001f0| 61 74 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |at speci|fication|
|00000200| 0d 09 66 69 6c 65 73 20 | 66 6f 72 20 73 6f 6d 65 |..files |for some|
|00000210| 20 63 6f 6d 6d 6f 6e 20 | 64 61 74 61 20 66 6f 72 | common |data for|
|00000220| 6d 61 74 73 20 61 72 65 | 20 69 6e 63 6c 75 64 65 |mats are| include|
|00000230| 64 20 69 6e 20 74 68 65 | 20 70 61 63 6b 61 67 65 |d in the| package|
|00000240| 2e 0d 0d 20 20 20 54 68 | 65 20 70 72 6f 67 72 61 |... Th|e progra|
|00000250| 6d 20 68 61 73 20 62 65 | 65 6e 20 74 65 73 74 65 |m has be|en teste|
|00000260| 64 20 6f 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |d on the| followi|
|00000270| 6e 67 20 6d 61 63 68 69 | 6e 65 73 20 61 6e 64 20 |ng machi|nes and |
|00000280| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00000290| 73 2e 0d 09 42 53 44 20 | 55 6e 69 78 20 34 2e 33 |s...BSD |Unix 4.3|
|000002a0| 0d 09 53 75 6e 20 34 20 | 28 53 75 6e 4f 53 20 52 |..Sun 4 |(SunOS R|
|000002b0| 65 6c 65 61 73 65 20 34 | 2e 31 29 0d 09 4e 65 58 |elease 4|.1)..NeX|
|000002c0| 54 20 28 4e 65 58 54 20 | 4f 53 20 52 65 6c 65 61 |T (NeXT |OS Relea|
|000002d0| 73 65 20 32 2e 31 29 0d | 09 49 42 4d 20 50 43 2f |se 2.1).|.IBM PC/|
|000002e0| 43 6c 6f 6e 65 73 20 28 | 4d 53 44 4f 53 20 35 2e |Clones (|MSDOS 5.|
|000002f0| 30 29 0d 09 09 4d 69 63 | 72 6f 73 6f 66 74 20 43 |0)...Mic|rosoft C|
|00000300| 20 28 76 35 2e 31 29 2c | 20 54 75 72 62 6f 20 43 | (v5.1),| Turbo C|
|00000310| 20 28 76 32 2e 30 29 2c | 20 54 75 72 62 6f 20 43 | (v2.0),| Turbo C|
|00000320| 2b 2b 20 28 76 31 2e 30 | 29 0d 09 4d 61 63 69 6e |++ (v1.0|)..Macin|
|00000330| 74 6f 73 68 20 28 53 79 | 73 74 65 6d 20 37 29 0d |tosh (Sy|stem 7).|
|00000340| 09 09 54 48 49 4e 4b 20 | 43 0d 0d 20 20 20 54 68 |..THINK |C.. Th|
|00000350| 69 73 20 70 72 6f 67 72 | 61 6d 20 69 73 20 6e 6f |is progr|am is no|
|00000360| 74 20 63 6f 70 79 72 69 | 67 68 74 65 64 2e 20 20 |t copyri|ghted. |
|00000370| 59 6f 75 20 61 72 65 20 | 66 72 65 65 20 74 6f 20 |You are |free to |
|00000380| 64 6f 20 77 68 61 74 65 | 76 65 72 0d 09 79 6f 75 |do whate|ver..you|
|00000390| 20 77 61 6e 74 20 77 69 | 74 68 20 69 74 2e 0d 0d | want wi|th it...|
|000003a0| 20 20 20 53 65 6e 64 20 | 63 6f 6d 6d 65 6e 74 73 | Send |comments|
|000003b0| 2c 20 62 75 67 20 66 69 | 78 65 73 2c 20 73 75 70 |, bug fi|xes, sup|
|000003c0| 70 6f 72 74 20 66 6f 72 | 20 6f 74 68 65 72 20 6d |port for| other m|
|000003d0| 61 63 68 69 6e 65 73 2f | 4f 53 2c 20 61 6e 64 20 |achines/|OS, and |
|000003e0| 61 64 64 69 74 6f 6e 61 | 6c 0d 09 66 6f 72 6d 61 |additona|l..forma|
|000003f0| 74 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |t specif|ication |
|00000400| 66 69 6c 65 73 20 74 6f | 3a 20 69 7a 75 6d 69 40 |files to|: izumi@|
|00000410| 70 69 6e 6f 6b 6f 2e 62 | 65 72 6b 65 6c 65 79 2e |pinoko.b|erkeley.|
|00000420| 65 64 75 2e 0d 0d 20 20 | 20 55 70 2d 74 6f 2d 64 |edu... | Up-to-d|
|00000430| 61 74 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ate vers|ion of t|
|00000440| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 61 6e 64 20 |his prog|ram and |
|00000450| 61 64 64 69 74 69 6f 6e | 61 6c 20 66 6f 72 6d 61 |addition|al forma|
|00000460| 74 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |t specif|ication |
|00000470| 66 69 6c 65 73 0d 09 77 | 69 6c 6c 20 62 65 20 61 |files..w|ill be a|
|00000480| 76 61 69 6c 61 62 6c 65 | 20 76 69 61 20 61 6e 6f |vailable| via ano|
|00000490| 6e 79 6d 6f 75 73 20 46 | 54 50 20 66 72 6f 6d 20 |nymous F|TP from |
|000004a0| 6f 75 72 20 6d 61 63 68 | 69 6e 65 0d 09 22 70 69 |our mach|ine.."pi|
|000004b0| 6e 6f 6b 6f 2e 62 65 72 | 6b 65 6c 65 79 2e 65 64 |noko.ber|keley.ed|
|000004c0| 75 22 20 69 6e 20 64 69 | 72 65 63 74 6f 72 79 3a |u" in di|rectory:|
|000004d0| 20 2f 70 75 62 2f 43 56 | 4e 65 74 2e 0d 0d 20 20 | /pub/CV|Net... |
|000004e0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|000004f0| 20 69 6e 20 6e 6f 20 77 | 61 79 20 67 75 61 72 61 | in no w|ay guara|
|00000500| 6e 74 65 65 64 20 74 6f | 20 64 6f 20 61 6e 79 74 |nteed to| do anyt|
|00000510| 68 69 6e 67 20 75 73 65 | 66 75 6c 20 66 6f 72 20 |hing use|ful for |
|00000520| 79 6f 75 2e 0d 20 20 20 | 4d 6f 72 65 20 6c 69 6b |you.. |More lik|
|00000530| 65 6c 79 2c 20 69 74 20 | 77 69 6c 6c 20 64 69 73 |ely, it |will dis|
|00000540| 74 72 61 63 74 20 79 6f | 75 72 20 61 74 74 65 6e |tract yo|ur atten|
|00000550| 74 69 6f 6e 20 66 72 6f | 6d 20 79 6f 75 72 20 72 |tion fro|m your r|
|00000560| 65 73 65 61 72 63 68 2e | 0d 0d 20 20 20 2d 2d 2d |esearch.|.. ---|
|00000570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005b0| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 55 73 61 67 |--------|. Usag|
|000005c0| 65 20 28 55 6e 69 78 2c | 20 50 43 29 3a 0d 09 63 |e (Unix,| PC):..c|
|000005d0| 76 6e 65 74 63 6e 76 20 | 69 6e 70 75 74 66 69 6c |vnetcnv |inputfil|
|000005e0| 65 20 6f 75 74 70 75 74 | 66 69 6c 65 20 5b 66 6f |e output|file [fo|
|000005f0| 72 6d 61 74 66 69 6c 65 | 5d 0d 0d 20 20 20 22 49 |rmatfile|].. "I|
|00000600| 6e 70 75 74 66 69 6c 65 | 22 20 69 73 20 61 20 66 |nputfile|" is a f|
|00000610| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ile cont|aining t|
|00000620| 68 65 20 43 56 4e 65 74 | 20 6d 61 73 74 65 72 20 |he CVNet| master |
|00000630| 6d 65 6d 62 65 72 20 6c | 69 73 74 20 61 73 20 6f |member l|ist as o|
|00000640| 62 74 61 69 6e 65 64 0d | 20 20 20 66 72 6f 6d 20 |btained.| from |
|00000650| 4c 69 73 74 73 65 72 76 | 40 76 6d 31 2e 79 6f 72 |Listserv|@vm1.yor|
|00000660| 6b 55 2e 63 61 20 62 79 | 20 73 65 6e 64 69 6e 67 |kU.ca by| sending|
|00000670| 20 69 74 20 61 20 6f 6e | 65 2d 6c 69 6e 65 20 6d | it a on|e-line m|
|00000680| 65 73 73 61 67 65 20 74 | 68 61 74 20 73 61 79 73 |essage t|hat says|
|00000690| 3a 0d 20 20 20 47 45 54 | 20 4d 45 4d 42 45 52 20 |:. GET| MEMBER |
|000006a0| 46 49 4c 45 0d 20 20 20 | 59 6f 75 20 64 6f 20 6e |FILE. |You do n|
|000006b0| 6f 74 20 68 61 76 65 20 | 74 6f 20 65 64 69 74 20 |ot have |to edit |
|000006c0| 6f 75 74 20 74 68 65 20 | 65 2d 6d 61 69 6c 20 68 |out the |e-mail h|
|000006d0| 65 61 64 65 72 20 61 6e | 64 20 6c 69 74 74 6c 65 |eader an|d little|
|000006e0| 20 6e 6f 74 65 73 20 61 | 74 20 74 68 65 0d 20 20 | notes a|t the. |
|000006f0| 20 62 65 67 69 6e 6e 69 | 6e 67 20 61 6e 64 20 65 | beginni|ng and e|
|00000700| 6e 64 20 6f 66 20 74 68 | 65 20 65 2d 6d 61 69 6c |nd of th|e e-mail|
|00000710| 20 74 65 78 74 2e 0d 0d | 20 20 20 22 4f 75 74 70 | text...| "Outp|
|00000720| 75 74 66 69 6c 65 22 20 | 77 69 6c 6c 20 63 6f 6e |utfile" |will con|
|00000730| 74 61 69 6e 20 74 68 65 | 20 72 65 73 75 6c 74 20 |tain the| result |
|00000740| 6f 66 20 63 6f 6e 76 65 | 72 73 69 6f 6e 20 70 65 |of conve|rsion pe|
|00000750| 72 66 6f 72 6d 65 64 20 | 70 65 72 0d 20 20 20 73 |rformed |per. s|
|00000760| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 69 6e 20 |pecifica|tion in |
|00000770| 66 69 6c 65 20 22 63 76 | 6e 65 74 63 6e 76 2e 66 |file "cv|netcnv.f|
|00000780| 6d 74 22 2e 0d 0d 20 20 | 20 22 46 6f 72 6d 61 74 |mt"... | "Format|
|00000790| 66 69 6c 65 22 20 6d 61 | 79 20 62 65 20 67 69 76 |file" ma|y be giv|
|000007a0| 65 6e 20 61 73 20 61 6e | 20 6f 70 74 69 6f 6e 20 |en as an| option |
|000007b0| 77 68 65 6e 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |when you| want to|
|000007c0| 20 6f 76 65 72 72 69 64 | 65 20 74 68 65 0d 20 20 | overrid|e the. |
|000007d0| 20 64 65 66 61 75 6c 74 | 20 75 73 65 20 6f 66 20 | default| use of |
|000007e0| 22 63 76 6e 65 74 63 6e | 76 2e 66 6d 74 22 2e 0d |"cvnetcn|v.fmt"..|
|000007f0| 0d 09 54 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |..The Ma|cintosh |
|00000800| 76 65 72 73 69 6f 6e 20 | 28 69 2e 65 2e 20 69 66 |version |(i.e. if|
|00000810| 20 4d 41 43 20 69 73 20 | 64 65 66 69 6e 65 64 29 | MAC is |defined)|
|00000820| 20 70 72 65 73 65 6e 74 | 73 20 73 74 61 6e 64 61 | present|s standa|
|00000830| 72 64 20 66 69 6c 65 0d | 09 64 69 61 6c 6f 67 73 |rd file.|.dialogs|
|00000840| 2c 20 61 73 6b 69 6e 67 | 20 79 6f 75 20 74 6f 20 |, asking| you to |
|00000850| 6f 70 65 6e 20 79 6f 75 | 72 20 43 56 4e 65 74 20 |open you|r CVNet |
|00000860| 6d 61 73 74 65 72 20 66 | 69 6c 65 2c 20 61 6e 64 |master f|ile, and|
|00000870| 20 68 6f 77 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | how you| want to|
|00000880| 0d 09 73 61 76 65 20 69 | 74 2e 20 59 6f 75 20 61 |..save i|t. You a|
|00000890| 72 65 20 61 73 6b 65 64 | 20 74 6f 20 6f 70 65 6e |re asked| to open|
|000008a0| 20 79 6f 75 72 20 6f 77 | 6e 20 66 6f 72 6d 61 74 | your ow|n format|
|000008b0| 20 66 69 6c 65 20 6f 6e | 6c 79 20 69 66 20 69 74 | file on|ly if it|
|000008c0| 20 63 61 6e 27 74 20 66 | 69 6e 64 0d 09 22 63 76 | can't f|ind.."cv|
|000008d0| 6e 65 74 63 6e 76 2e 66 | 6d 74 22 2e 0d 20 20 20 |netcnv.f|mt".. |
|000008e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000920| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 20 20 20 54 |--------|---. T|
|00000930| 6f 20 43 6f 6d 70 69 6c | 65 3a 0d 20 20 20 4e 4f |o Compil|e:. NO|
|00000940| 54 45 20 2d 2d 20 50 6c | 65 61 73 65 20 63 68 65 |TE -- Pl|ease che|
|00000950| 63 6b 20 69 66 20 74 68 | 65 20 61 70 70 72 6f 70 |ck if th|e approp|
|00000960| 72 69 61 74 65 20 6d 61 | 63 72 6f 20 69 73 20 64 |riate ma|cro is d|
|00000970| 65 66 69 6e 65 64 20 66 | 6f 72 0d 09 55 4e 49 58 |efined f|or..UNIX|
|00000980| 2c 20 4d 53 44 4f 53 2c | 20 4d 41 43 20 6f 72 20 |, MSDOS,| MAC or |
|00000990| 77 68 61 74 65 76 65 72 | 2e 20 20 54 68 65 73 65 |whatever|. These|
|000009a0| 20 6d 61 63 72 6f 73 20 | 73 68 6f 75 6c 64 20 62 | macros |should b|
|000009b0| 65 20 6d 75 74 75 61 6c | 6c 79 0d 09 65 78 63 6c |e mutual|ly..excl|
|000009c0| 75 73 69 76 65 2e 20 20 | 49 66 20 79 6f 75 20 64 |usive. |If you d|
|000009d0| 65 66 69 6e 65 20 4d 41 | 43 2c 20 63 6f 6d 6d 65 |efine MA|C, comme|
|000009e0| 6e 74 20 6f 75 74 20 74 | 68 65 20 6f 74 68 65 72 |nt out t|he other|
|000009f0| 73 2e 0d 0d 20 20 20 55 | 4e 49 58 0d 09 63 63 20 |s... U|NIX..cc |
|00000a00| 2d 6f 20 63 76 6e 65 74 | 63 6e 76 20 63 76 6e 65 |-o cvnet|cnv cvne|
|00000a10| 74 63 6e 76 2e 63 0d 0d | 20 20 20 4d 53 44 4f 53 |tcnv.c..| MSDOS|
|00000a20| 20 28 55 6e 63 6f 6d 6d | 65 6e 74 20 23 64 65 66 | (Uncomm|ent #def|
|00000a30| 69 6e 65 20 4d 53 44 4f | 53 20 62 65 6c 6f 77 2e |ine MSDO|S below.|
|00000a40| 20 53 61 6d 65 20 66 6f | 72 20 54 75 72 62 6f 20 | Same fo|r Turbo |
|00000a50| 43 2b 2b 29 0d 09 63 6c | 20 63 76 6e 65 74 63 6e |C++)..cl| cvnetcn|
|00000a60| 76 2e 63 20 28 4d 53 43 | 29 0d 09 74 63 63 20 63 |v.c (MSC|)..tcc c|
|00000a70| 76 6e 65 74 63 6e 76 2e | 63 20 28 54 75 72 62 6f |vnetcnv.|c (Turbo|
|00000a80| 20 43 29 0d 0d 20 20 20 | 4d 61 63 69 6e 74 6f 73 | C).. |Macintos|
|00000a90| 68 20 54 48 49 4e 4b 20 | 43 0d 20 20 20 09 20 55 |h THINK |C. . U|
|00000aa0| 6e 63 6f 6d 6d 65 6e 74 | 20 23 64 65 66 69 6e 65 |ncomment| #define|
|00000ab0| 20 4d 41 43 20 62 65 6c | 6f 77 2e 20 55 73 65 20 | MAC bel|ow. Use |
|00000ac0| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 70 72 6f |the supp|lied pro|
|00000ad0| 6a 65 63 74 20 66 69 6c | 65 20 63 76 6e 65 74 63 |ject fil|e cvnetc|
|00000ae0| 6e 76 2e b9 2e 20 49 74 | 0d 20 20 20 09 20 77 69 |nv... It|. . wi|
|00000af0| 6c 6c 20 63 72 65 61 74 | 65 20 61 6e 20 61 70 70 |ll creat|e an app|
|00000b00| 6c 69 63 61 74 69 6f 6e | 20 63 61 6c 6c 65 64 20 |lication| called |
|00000b10| 43 56 4e 65 74 43 6f 6e | 76 65 72 74 2c 20 77 68 |CVNetCon|vert, wh|
|00000b20| 69 63 68 20 69 73 20 61 | 20 73 74 61 6e 64 2d 61 |ich is a| stand-a|
|00000b30| 6c 6f 6e 65 0d 20 20 20 | 09 20 4d 61 63 69 6e 74 |lone. |. Macint|
|00000b40| 6f 73 68 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |osh appl|ication,|
|00000b50| 20 73 75 69 74 61 62 6c | 65 20 66 6f 72 20 64 6f | suitabl|e for do|
|00000b60| 75 62 6c 65 20 63 6c 69 | 63 6b 69 6e 67 2e 20 43 |uble cli|cking. C|
|00000b70| 56 4e 65 74 43 6f 6e 76 | 65 72 74 0d 20 20 20 09 |VNetConv|ert. .|
|00000b80| 20 73 68 6f 75 6c 64 20 | 77 6f 72 6b 20 66 69 6e | should |work fin|
|00000b90| 65 20 6f 6e 20 61 6c 6c | 20 4d 61 63 73 20 61 6e |e on all| Macs an|
|00000ba0| 64 20 53 79 73 74 65 6d | 73 20 36 20 61 6e 64 20 |d System|s 6 and |
|00000bb0| 37 2c 20 62 75 74 20 77 | 61 73 20 6f 6e 6c 79 20 |7, but w|as only |
|00000bc0| 74 65 73 74 65 64 20 6f | 6e 20 0d 20 20 20 09 20 |tested o|n . . |
|00000bd0| 4d 61 63 20 49 49 63 69 | 20 77 69 74 68 20 53 79 |Mac IIci| with Sy|
|00000be0| 73 74 65 6d 20 37 2e 20 | 54 68 65 20 6f 6e 6c 79 |stem 7. |The only|
|00000bf0| 20 70 6f 72 74 61 62 69 | 6c 69 74 79 20 70 72 6f | portabi|lity pro|
|00000c00| 62 6c 65 6d 20 49 20 63 | 61 6e 20 63 6f 6e 63 65 |blem I c|an conce|
|00000c10| 69 76 65 20 6f 66 20 69 | 73 0d 20 20 20 09 20 74 |ive of i|s. . t|
|00000c20| 68 65 20 6e 65 65 64 20 | 66 6f 72 20 41 4c 52 54 |he need |for ALRT|
|00000c30| 20 72 65 73 6f 75 72 63 | 65 20 2d 31 36 34 30 35 | resourc|e -16405|
|00000c40| 2c 20 77 68 69 63 68 20 | 69 73 20 70 72 65 73 65 |, which |is prese|
|00000c50| 6e 74 20 69 6e 20 53 79 | 73 74 65 6d 73 20 36 2e |nt in Sy|stems 6.|
|00000c60| 30 37 20 61 6e 64 20 37 | 2e 0d 20 20 20 2d 2d 2d |07 and 7|.. ---|
|00000c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ca0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 54 6f 20 50 |--------|. To P|
|00000cc0| 72 65 70 61 72 65 20 43 | 6f 6e 76 65 72 73 69 6f |repare C|onversio|
|00000cd0| 6e 20 46 6f 72 6d 61 74 | 20 53 70 65 63 69 66 69 |n Format| Specifi|
|00000ce0| 63 61 74 69 6f 6e 20 46 | 69 6c 65 3a 0d 0d 20 20 |cation F|ile:.. |
|00000cf0| 20 54 68 65 20 66 69 72 | 73 74 20 6c 69 6e 65 20 | The fir|st line |
|00000d00| 6f 66 20 74 68 65 20 66 | 6f 72 6d 61 74 20 66 69 |of the f|ormat fi|
|00000d10| 6c 65 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 |le speci|fies the|
|00000d20| 20 72 65 63 6f 72 64 20 | 66 6f 72 6d 61 74 2e 20 | record |format. |
|00000d30| 59 6f 75 20 6d 61 79 20 | 75 73 65 20 0d 20 20 20 |You may |use . |
|00000d40| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 76 61 |the foll|owing va|
|00000d50| 72 69 61 62 6c 65 20 6e | 61 6d 65 73 2e 20 41 6c |riable n|ames. Al|
|00000d60| 6c 20 6f 74 68 65 72 20 | 63 68 61 72 61 63 74 65 |l other |characte|
|00000d70| 72 73 20 6e 6f 74 20 6c | 69 73 74 65 64 20 62 65 |rs not l|isted be|
|00000d80| 6c 6f 77 20 77 69 6c 6c | 20 0d 20 20 20 62 65 20 |low will| . be |
|00000d90| 77 72 69 74 74 65 6e 20 | 6f 75 74 20 74 6f 20 74 |written |out to t|
|00000da0| 68 65 20 6f 75 74 70 75 | 74 20 61 73 20 69 73 2e |he outpu|t as is.|
|00000db0| 0d 0d 09 20 20 20 20 24 | 4c 20 2d 2d 20 6c 61 73 |... $|L -- las|
|00000dc0| 74 20 6e 61 6d 65 0d 09 | 20 20 20 20 24 46 20 2d |t name..| $F -|
|00000dd0| 2d 20 66 69 72 73 74 20 | 6e 61 6d 65 20 26 20 69 |- first |name & i|
|00000de0| 6e 69 74 69 61 6c 0d 09 | 20 20 20 20 24 49 20 2d |nitial..| $I -|
|00000df0| 2d 20 69 6e 73 74 69 74 | 75 74 69 6f 6e 61 6c 20 |- instit|utional |
|00000e00| 61 66 66 69 6c 69 61 74 | 69 6f 6e 0d 09 20 20 20 |affiliat|ion.. |
|00000e10| 20 24 41 20 2d 2d 20 61 | 64 64 72 65 73 73 20 28 | $A -- a|ddress (|
|00000e20| 65 2d 6d 61 69 6c 29 0d | 09 20 20 20 20 24 54 20 |e-mail).|. $T |
|00000e30| 2d 2d 20 54 41 42 20 63 | 68 61 72 61 63 74 65 72 |-- TAB c|haracter|
|00000e40| 0d 09 20 20 20 20 24 4e | 20 2d 2d 20 4e 45 57 20 |.. $N| -- NEW |
|00000e50| 4c 49 4e 45 20 63 68 61 | 72 61 63 74 65 72 20 28 |LINE cha|racter (|
|00000e60| 4c 46 20 66 6f 72 20 55 | 4e 49 58 2c 20 43 52 4c |LF for U|NIX, CRL|
|00000e70| 46 20 66 6f 72 20 4d 53 | 44 4f 53 29 0d 09 20 20 |F for MS|DOS).. |
|00000e80| 20 20 24 43 6e 6e 20 2d | 2d 20 61 64 76 61 6e 63 | $Cnn -|- advanc|
|00000e90| 65 20 74 6f 20 63 6f 6c | 75 6d 6e 20 6e 6e 20 69 |e to col|umn nn i|
|00000ea0| 66 20 70 6f 73 73 69 62 | 6c 65 20 28 69 66 20 6e |f possib|le (if n|
|00000eb0| 6f 74 20 70 61 73 74 20 | 69 74 20 61 6c 72 65 61 |ot past |it alrea|
|00000ec0| 64 79 29 0d 0d 20 20 20 | 20 46 6f 72 20 65 78 61 |dy).. | For exa|
|00000ed0| 6d 70 6c 65 2c 20 74 68 | 69 73 20 66 6f 72 6d 61 |mple, th|is forma|
|00000ee0| 74 20 6c 69 6e 65 0d 09 | 20 20 20 20 24 4c 24 43 |t line..| $L$C|
|00000ef0| 31 32 24 46 24 43 32 32 | 28 24 49 29 24 43 34 33 |12$F$C22|($I)$C43|
|00000f00| 3c 24 41 3e 2c 0d 20 20 | 20 20 70 72 6f 64 75 63 |<$A>,. | produc|
|00000f10| 65 73 20 61 20 66 69 6c | 65 20 73 75 69 74 61 62 |es a fil|e suitab|
|00000f20| 6c 65 20 66 6f 72 20 55 | 4e 49 58 20 22 6d 61 69 |le for U|NIX "mai|
|00000f30| 6c 2f 73 65 6e 64 6d 61 | 69 6c 22 3a 0d 09 20 20 |l/sendma|il":.. |
|00000f40| 20 20 41 62 72 61 6d 6f | 76 20 20 20 20 49 73 72 | Abramo|v Isr|
|00000f50| 61 65 6c 20 20 20 20 28 | 42 72 6f 6f 6b 6c 79 6e |ael (|Brooklyn|
|00000f60| 20 43 6f 6c 6c 65 67 65 | 29 20 20 20 3c 69 78 72 | College|) <ixr|
|00000f70| 62 63 40 63 75 6e 79 76 | 6d 2e 62 69 74 6e 65 74 |bc@cunyv|m.bitnet|
|00000f80| 3e 2c 0d 0d 20 20 20 20 | 5b 23 23 23 23 20 57 61 |>,.. |[#### Wa|
|00000f90| 72 6e 69 6e 67 2e 20 20 | 44 6f 6e 27 74 20 73 65 |rning. |Don't se|
|00000fa0| 6e 64 20 45 2d 6d 61 69 | 6c 73 20 74 6f 20 65 76 |nd E-mai|ls to ev|
|00000fb0| 65 72 79 6f 6e 65 20 6f | 6e 20 43 56 4e 65 74 20 |eryone o|n CVNet |
|00000fc0| 75 73 69 6e 67 20 74 68 | 65 20 61 6c 69 61 73 20 |using th|e alias |
|00000fd0| 66 69 6c 65 0d 20 20 20 | 20 20 79 6f 75 20 63 61 |file. | you ca|
|00000fe0| 6e 20 6f 62 74 61 69 6e | 20 74 68 69 73 20 77 61 |n obtain| this wa|
|00000ff0| 79 2e 20 20 54 68 61 74 | 20 69 73 20 41 42 55 53 |y. That| is ABUS|
|00001000| 45 20 6f 66 20 74 68 65 | 20 64 61 74 61 62 61 73 |E of the| databas|
|00001010| 65 2e 5d 0d 0d 20 20 20 | 20 4f 6e 20 74 68 65 20 |e.].. | On the |
|00001020| 73 65 63 6f 6e 64 20 6c | 69 6e 65 2c 20 61 20 6c |second l|ine, a l|
|00001030| 69 6e 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 77 69 |ine begi|nning wi|
|00001040| 74 68 20 24 4d 20 6d 61 | 79 20 61 70 70 65 61 72 |th $M ma|y appear|
|00001050| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 2e 20 49 66 20 | optiona|lly. If |
|00001060| 70 72 65 73 65 6e 74 2c | 0d 20 20 20 20 69 74 20 |present,|. it |
|00001070| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6f 75 |specifie|s the ou|
|00001080| 74 70 75 74 20 66 69 6c | 65 27 73 20 4d 61 63 69 |tput fil|e's Maci|
|00001090| 6e 74 6f 73 68 20 66 69 | 6c 65 20 74 79 70 65 20 |ntosh fi|le type |
|000010a0| 61 6e 64 20 63 72 65 61 | 74 6f 72 20 28 69 67 6e |and crea|tor (ign|
|000010b0| 6f 72 65 64 20 75 6e 6c | 65 73 73 20 0d 20 20 20 |ored unl|ess . |
|000010c0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 69 73 20 | the pro|gram is |
|000010d0| 72 75 6e 6e 69 6e 67 20 | 6f 6e 20 61 20 4d 61 63 |running |on a Mac|
|000010e0| 29 2e 20 20 49 66 20 6e | 6f 74 20 70 72 65 73 65 |). If n|ot prese|
|000010f0| 6e 74 2c 20 74 68 65 20 | 66 69 6c 65 20 74 79 70 |nt, the |file typ|
|00001100| 65 2f 63 72 65 61 74 6f | 72 0d 20 20 20 20 77 69 |e/creato|r. wi|
|00001110| 6c 6c 20 62 65 20 73 65 | 74 20 74 6f 20 74 68 61 |ll be se|t to tha|
|00001120| 74 20 6f 66 20 4d 61 63 | 57 72 69 74 65 20 74 65 |t of Mac|Write te|
|00001130| 78 74 20 66 69 6c 65 2e | 0d 20 20 20 20 0d 20 20 |xt file.|. . |
|00001140| 20 20 41 66 74 65 72 20 | 74 68 65 20 24 4d 20 6c | After |the $M l|
|00001150| 69 6e 65 2c 20 6f 72 20 | 6f 6e 20 74 68 65 20 73 |ine, or |on the s|
|00001160| 65 63 6f 6e 64 20 6c 69 | 6e 65 20 69 66 20 24 4d |econd li|ne if $M|
|00001170| 20 6c 69 6e 65 20 64 6f | 65 73 20 6e 6f 74 20 61 | line do|es not a|
|00001180| 70 70 65 61 72 2c 0d 20 | 20 20 20 61 20 6c 69 6e |ppear,. | a lin|
|00001190| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |e beginn|ing with|
|000011a0| 20 24 50 20 6d 61 79 20 | 61 70 70 65 61 72 20 6f | $P may |appear o|
|000011b0| 70 74 69 6f 6e 61 6c 6c | 79 20 28 77 68 69 63 68 |ptionall|y (which|
|000011c0| 20 6d 61 79 20 63 6f 6e | 74 69 6e 75 65 20 66 6f | may con|tinue fo|
|000011d0| 72 0d 20 20 20 20 6d 75 | 6c 74 69 70 6c 65 20 6c |r. mu|ltiple l|
|000011e0| 69 6e 65 73 29 2e 20 20 | 49 66 20 70 72 65 73 65 |ines). |If prese|
|000011f0| 6e 74 2c 20 69 74 20 77 | 69 6c 6c 20 73 70 65 63 |nt, it w|ill spec|
|00001200| 69 66 79 20 74 68 65 20 | 70 72 6f 6c 6f 67 2c 20 |ify the |prolog, |
|00001210| 74 65 78 74 20 70 6c 61 | 63 65 64 0d 20 20 20 20 |text pla|ced. |
|00001220| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00001230| 20 6f 66 20 74 68 65 20 | 6f 75 74 70 75 74 20 66 | of the |output f|
|00001240| 69 6c 65 20 62 65 66 6f | 72 65 20 61 6c 6c 20 61 |ile befo|re all a|
|00001250| 64 64 72 65 73 73 20 72 | 65 63 6f 72 64 73 2e 0d |ddress r|ecords..|
|00001260| 20 20 20 20 41 66 74 65 | 72 20 74 68 69 73 2c 20 | Afte|r this, |
|00001270| 61 20 6c 69 6e 65 20 62 | 65 67 69 6e 6e 69 6e 67 |a line b|eginning|
|00001280| 20 77 69 74 68 20 24 45 | 20 6d 61 79 20 61 70 70 | with $E| may app|
|00001290| 65 61 72 20 6f 70 74 69 | 6f 6e 61 6c 6c 79 20 28 |ear opti|onally (|
|000012a0| 77 68 69 63 68 0d 20 20 | 20 20 6d 61 79 20 63 6f |which. | may co|
|000012b0| 6e 74 69 6e 75 65 20 66 | 6f 72 20 6d 75 6c 74 69 |ntinue f|or multi|
|000012c0| 70 6c 65 20 6c 69 6e 65 | 73 29 2e 20 20 49 66 20 |ple line|s). If |
|000012d0| 70 72 65 73 65 6e 74 2c | 20 69 74 20 77 69 6c 6c |present,| it will|
|000012e0| 20 73 70 65 63 69 66 79 | 20 74 68 65 0d 20 20 20 | specify| the. |
|000012f0| 20 65 70 69 6c 6f 67 2c | 20 74 65 78 74 20 70 6c | epilog,| text pl|
|00001300| 61 63 65 64 20 61 74 20 | 74 68 65 20 65 6e 64 20 |aced at |the end |
|00001310| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 20 66 69 |of the o|utput fi|
|00001320| 6c 65 20 61 66 74 65 72 | 20 61 6c 6c 0d 20 20 20 |le after| all. |
|00001330| 20 61 64 64 72 65 73 73 | 20 72 65 63 6f 72 64 73 | address| records|
|00001340| 2e 20 20 0d 20 20 20 20 | 0d 20 20 20 20 24 4d 2c |. . |. $M,|
|00001350| 20 24 50 2c 20 24 45 20 | 6d 75 73 74 20 61 70 70 | $P, $E |must app|
|00001360| 65 61 72 20 69 6e 20 74 | 68 61 74 20 6f 72 64 65 |ear in t|hat orde|
|00001370| 72 20 69 66 20 61 6c 6c | 20 74 68 72 65 65 20 61 |r if all| three a|
|00001380| 72 65 20 70 72 65 73 65 | 6e 74 2e 0d 20 20 20 20 |re prese|nt.. |
|00001390| 4e 6f 74 20 61 6c 6c 20 | 6f 66 20 74 68 65 6d 20 |Not all |of them |
|000013a0| 68 61 76 65 20 74 6f 20 | 62 65 20 70 72 65 73 65 |have to |be prese|
|000013b0| 6e 74 2c 20 65 2e 67 2e | 2c 20 69 66 20 6e 6f 20 |nt, e.g.|, if no |
|000013c0| 70 72 6f 6c 6f 67 20 69 | 73 20 6e 65 65 64 65 64 |prolog i|s needed|
|000013d0| 0d 20 20 20 20 62 75 74 | 20 65 70 69 6c 6f 67 20 |. but| epilog |
|000013e0| 69 73 20 72 65 71 75 69 | 72 65 64 2c 20 24 4d 2c |is requi|red, $M,|
|000013f0| 20 24 45 20 6c 69 6e 65 | 73 20 73 68 6f 75 6c 64 | $E line|s should|
|00001400| 20 62 65 20 65 6e 74 65 | 72 65 64 20 69 6e 20 74 | be ente|red in t|
|00001410| 68 61 74 20 6f 72 64 65 | 72 2e 0d 20 20 20 20 0d |hat orde|r.. .|
|00001420| 20 20 20 20 54 68 65 72 | 65 20 6d 75 73 74 20 6e | Ther|e must n|
|00001430| 6f 74 20 62 65 20 61 6e | 79 20 62 6c 61 6e 6b 20 |ot be an|y blank |
|00001440| 6f 72 20 65 78 74 72 61 | 6e 65 6f 75 73 20 6c 69 |or extra|neous li|
|00001450| 6e 65 73 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |nes betw|een the |
|00001460| 66 69 72 73 74 20 6c 69 | 6e 65 0d 20 20 20 20 61 |first li|ne. a|
|00001470| 6e 64 20 24 4d 2e 20 20 | 53 69 6d 69 6c 61 72 6c |nd $M. |Similarl|
|00001480| 79 2c 20 6e 6f 20 62 6c | 61 6e 6b 20 6f 72 20 65 |y, no bl|ank or e|
|00001490| 78 74 72 61 6e 65 6f 75 | 73 20 6c 69 6e 65 73 20 |xtraneou|s lines |
|000014a0| 73 68 6f 75 6c 64 20 62 | 65 20 70 72 65 73 65 6e |should b|e presen|
|000014b0| 74 0d 20 20 20 20 62 65 | 74 77 65 65 6e 20 24 4d |t. be|tween $M|
|000014c0| 2c 20 24 50 2c 20 24 45 | 20 73 70 65 63 69 66 69 |, $P, $E| specifi|
|000014d0| 63 61 74 69 6f 6e 73 2e | 20 20 48 6f 77 65 76 65 |cations.| Howeve|
|000014e0| 72 2c 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 20 61 |r, blank| lines a|
|000014f0| 72 65 20 61 6c 6c 6f 77 | 65 64 0d 20 20 20 20 77 |re allow|ed. w|
|00001500| 69 74 68 69 6e 20 74 68 | 65 20 71 75 6f 74 65 64 |ithin th|e quoted|
|00001510| 20 74 65 78 74 20 66 6f | 72 20 74 68 65 20 70 72 | text fo|r the pr|
|00001520| 6f 6c 6f 67 20 61 6e 64 | 20 65 70 69 6c 6f 67 2e |olog and| epilog.|
|00001530| 20 0d 20 20 20 20 0d 20 | 20 20 20 24 4d 2c 20 24 | . . | $M, $|
|00001540| 50 2c 20 24 45 20 6d 75 | 73 74 20 61 70 70 65 61 |P, $E mu|st appea|
|00001550| 72 20 61 74 20 63 6f 6c | 75 6d 6e 20 31 20 77 69 |r at col|umn 1 wi|
|00001560| 74 68 6f 75 74 20 61 6e | 79 20 6c 65 61 64 69 6e |thout an|y leadin|
|00001570| 67 20 73 70 61 63 65 73 | 2e 0d 0d 20 20 20 20 0d |g spaces|... .|
|00001580| 09 24 4d 74 74 74 74 63 | 63 63 63 20 2d 2d 20 73 |.$Mttttc|ccc -- s|
|00001590| 70 65 63 69 66 79 20 74 | 68 65 20 6f 75 74 70 75 |pecify t|he outpu|
|000015a0| 74 20 66 69 6c 65 27 73 | 20 66 6f 75 72 2d 63 68 |t file's| four-ch|
|000015b0| 61 72 61 63 74 65 72 20 | 4d 61 63 69 6e 74 6f 73 |aracter |Macintos|
|000015c0| 68 20 74 79 70 65 20 0d | 09 09 28 65 2e 67 2e 20 |h type .|..(e.g. |
|000015d0| 54 45 58 54 29 20 61 6e | 64 20 63 72 65 61 74 6f |TEXT) an|d creato|
|000015e0| 72 20 28 65 2e 67 2e 20 | 4d 41 43 41 29 2e 20 54 |r (e.g. |MACA). T|
|000015f0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 6c |he rest |of the l|
|00001600| 69 6e 65 20 69 73 20 69 | 67 6e 6f 72 65 64 2e 0d |ine is i|gnored..|
|00001610| 09 24 50 5e 70 72 6f 6c | 6f 67 20 74 65 78 74 5e |.$P^prol|og text^|
|00001620| 20 2d 2d 20 50 6c 61 63 | 65 20 74 68 65 20 74 65 | -- Plac|e the te|
|00001630| 78 74 20 62 65 74 77 65 | 65 6e 20 71 75 6f 74 65 |xt betwe|en quote|
|00001640| 20 63 68 61 72 73 20 61 | 74 20 74 68 65 20 62 65 | chars a|t the be|
|00001650| 67 69 6e 6e 69 6e 67 20 | 6f 66 0d 09 09 74 68 65 |ginning |of...the|
|00001660| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 2e 0d 09 24 | output |file...$|
|00001670| 45 5e 65 70 69 6c 6f 67 | 20 74 65 78 74 5e 20 2d |E^epilog| text^ -|
|00001680| 2d 20 50 6c 61 63 65 20 | 74 68 65 20 74 65 78 74 |- Place |the text|
|00001690| 20 62 65 74 77 65 65 6e | 20 71 75 6f 74 65 20 63 | between| quote c|
|000016a0| 68 61 72 73 20 61 74 20 | 74 68 65 20 65 6e 64 20 |hars at |the end |
|000016b0| 6f 66 20 74 68 65 0d 09 | 09 6f 75 74 70 75 74 20 |of the..|.output |
|000016c0| 66 69 6c 65 2e 0d 20 20 | 20 20 0d 20 20 20 20 54 |file.. | . T|
|000016d0| 68 65 20 70 72 6f 6c 6f | 67 20 61 6e 64 20 65 70 |he prolo|g and ep|
|000016e0| 69 6c 6f 67 20 6d 61 79 | 20 65 78 74 65 6e 64 20 |ilog may| extend |
|000016f0| 6f 76 65 72 20 6d 61 6e | 79 20 6c 69 6e 65 73 2e |over man|y lines.|
|00001700| 20 54 68 65 20 63 68 61 | 72 61 63 74 65 72 20 74 | The cha|racter t|
|00001710| 68 61 74 20 0d 20 20 20 | 20 69 6d 6d 65 64 69 61 |hat . | immedia|
|00001720| 74 65 6c 79 20 66 6f 6c | 6c 6f 77 73 20 24 50 20 |tely fol|lows $P |
|00001730| 61 6e 64 20 24 45 20 69 | 73 20 75 73 65 64 20 61 |and $E i|s used a|
|00001740| 73 20 74 68 65 20 22 71 | 75 6f 74 65 22 20 63 68 |s the "q|uote" ch|
|00001750| 61 72 61 63 74 65 72 20 | 74 6f 20 0d 20 20 20 20 |aracter |to . |
|00001760| 6d 61 72 6b 20 74 68 65 | 20 72 61 6e 67 65 20 6f |mark the| range o|
|00001770| 66 20 74 65 78 74 20 66 | 6f 72 20 70 72 6f 6c 6f |f text f|or prolo|
|00001780| 67 20 61 6e 64 20 65 70 | 69 6c 6f 67 2e 20 20 54 |g and ep|ilog. T|
|00001790| 68 65 20 71 75 6f 74 65 | 20 63 68 61 72 20 6d 61 |he quote| char ma|
|000017a0| 79 20 62 65 20 61 6e 79 | 20 0d 20 20 20 20 70 72 |y be any| . pr|
|000017b0| 69 6e 74 61 62 6c 65 20 | 63 68 61 72 61 63 74 65 |intable |characte|
|000017c0| 72 20 74 68 61 74 20 69 | 73 20 6e 6f 74 20 75 73 |r that i|s not us|
|000017d0| 65 64 20 69 6e 20 74 68 | 65 20 71 75 6f 74 65 64 |ed in th|e quoted|
|000017e0| 20 74 65 78 74 20 66 6f | 72 20 74 68 65 20 0d 20 | text fo|r the . |
|000017f0| 20 20 20 70 72 6f 6c 6f | 67 20 61 6e 64 20 65 70 | prolo|g and ep|
|00001800| 69 6c 6f 67 2e 20 54 68 | 65 20 72 65 73 74 20 6f |ilog. Th|e rest o|
|00001810| 66 20 74 68 65 20 6c 69 | 6e 65 20 61 66 74 65 72 |f the li|ne after|
|00001820| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 74 69 6e 67 | the ter|minating|
|00001830| 20 71 75 6f 74 65 20 69 | 73 20 0d 20 20 20 20 69 | quote i|s . i|
|00001840| 67 6e 6f 72 65 64 2e 20 | 41 66 74 65 72 20 74 68 |gnored. |After th|
|00001850| 65 20 6f 70 74 69 6f 6e | 61 6c 20 24 4d 2c 20 24 |e option|al $M, $|
|00001860| 50 2c 20 61 6e 64 20 24 | 45 20 74 68 65 20 72 65 |P, and $|E the re|
|00001870| 73 74 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 69 |st of th|e file i|
|00001880| 73 20 69 67 6e 6f 72 65 | 64 2e 0d 20 20 20 20 0d |s ignore|d.. .|
|00001890| 20 20 20 20 54 68 65 20 | 51 75 69 63 6b 44 45 58 | The |QuickDEX|
|000018a0| 2e 66 6d 74 20 66 6f 72 | 6d 61 74 20 66 69 6c 65 |.fmt for|mat file|
|000018b0| 20 70 72 6f 64 75 63 65 | 73 20 61 20 4d 61 63 69 | produce|s a Maci|
|000018c0| 6e 74 6f 73 68 20 66 69 | 6c 65 0d 20 20 20 20 73 |ntosh fi|le. s|
|000018d0| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 75 73 65 20 |uitable |for use |
|000018e0| 77 69 74 68 20 74 68 65 | 20 52 6f 6c 6f 64 65 78 |with the| Rolodex|
|000018f0| 2d 6c 69 6b 65 20 70 72 | 6f 67 72 61 6d 20 63 61 |-like pr|ogram ca|
|00001900| 6c 6c 65 64 20 51 75 69 | 63 6b 44 45 58 3a 0d 09 |lled Qui|ckDEX:..|
|00001910| 20 20 20 20 2a 24 4e 4e | 24 46 20 24 4c 24 4e 24 | *$NN|$F $L$N$|
|00001920| 49 24 4e 24 41 0d 09 20 | 20 20 20 24 4d 54 45 58 |I$N$A.. | $MTEX|
|00001930| 54 51 44 45 78 0d 09 20 | 20 20 20 24 50 5e 0d 09 |TQDEx.. | $P^..|
|00001940| 20 20 20 20 2a 0d 09 20 | 20 20 20 5e 0d 09 20 20 | *.. | ^.. |
|00001950| 20 20 24 45 5e 2a 0d 09 | 20 20 20 20 2a 0d 09 20 | $E^*..| *.. |
|00001960| 20 20 20 5e 0d 20 20 20 | 20 54 68 65 20 66 69 72 | ^. | The fir|
|00001970| 73 74 20 6c 69 6e 65 20 | 73 70 65 63 69 66 69 65 |st line |specifie|
|00001980| 73 20 74 68 65 20 72 65 | 63 6f 72 64 20 66 6f 72 |s the re|cord for|
|00001990| 6d 61 74 2c 20 77 68 69 | 63 68 20 70 72 6f 64 75 |mat, whi|ch produ|
|000019a0| 63 65 73 20 72 65 63 6f | 72 64 73 20 6c 69 6b 65 |ces reco|rds like|
|000019b0| 20 74 68 69 73 3a 0d 09 | 20 20 20 20 2a 0d 09 20 | this:..| *.. |
|000019c0| 20 20 20 4e 49 73 72 61 | 65 6c 20 41 62 72 61 6d | NIsra|el Abram|
|000019d0| 6f 76 0d 09 20 20 20 20 | 42 72 6f 6f 6b 6c 79 6e |ov.. |Brooklyn|
|000019e0| 20 43 6f 6c 6c 65 67 65 | 0d 09 20 20 20 20 69 78 | College|.. ix|
|000019f0| 72 62 63 40 63 75 6e 79 | 76 6d 2e 62 69 74 6e 65 |rbc@cuny|vm.bitne|
|00001a00| 74 0d 20 20 20 20 54 68 | 65 20 6c 69 6e 65 20 62 |t. Th|e line b|
|00001a10| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 24 4d |eginning| with $M|
|00001a20| 20 73 70 65 63 69 66 69 | 65 73 20 74 68 65 20 4d | specifi|es the M|
|00001a30| 61 63 69 6e 74 6f 73 68 | 20 66 69 6c 65 20 74 79 |acintosh| file ty|
|00001a40| 70 65 20 28 54 45 58 54 | 29 20 61 6e 64 20 63 72 |pe (TEXT|) and cr|
|00001a50| 65 61 74 6f 72 0d 20 20 | 20 20 28 51 44 45 78 29 |eator. | (QDEx)|
|00001a60| 20 73 6f 20 74 68 61 74 | 20 51 75 69 63 6b 44 45 | so that| QuickDE|
|00001a70| 58 20 77 69 6c 6c 20 72 | 65 63 6f 67 6e 69 7a 65 |X will r|ecognize|
|00001a80| 20 69 74 2e 20 54 68 65 | 20 6c 69 6e 65 73 20 62 | it. The| lines b|
|00001a90| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 24 50 |eginning| with $P|
|00001aa0| 20 61 6e 64 20 24 45 20 | 0d 20 20 20 20 73 70 65 | and $E |. spe|
|00001ab0| 63 69 66 79 20 61 20 70 | 72 6f 6c 6f 67 20 61 6e |cify a p|rolog an|
|00001ac0| 64 20 65 70 69 6c 6f 67 | 2c 20 61 64 64 69 6e 67 |d epilog|, adding|
|00001ad0| 20 73 6f 6d 65 20 65 78 | 74 72 61 20 2a 27 73 20 | some ex|tra *'s |
|00001ae0| 61 6e 64 20 6c 69 6e 65 | 66 65 65 64 73 20 74 6f |and line|feeds to|
|00001af0| 20 70 6c 65 61 73 65 20 | 51 75 69 63 6b 44 45 58 | please |QuickDEX|
|00001b00| 2e 0d 0d 20 20 20 20 48 | 65 72 65 20 61 72 65 20 |... H|ere are |
|00001b10| 73 6f 6d 65 20 6d 6f 72 | 65 20 65 78 61 6d 70 6c |some mor|e exampl|
|00001b20| 65 73 3a 0d 20 20 20 20 | 0d 20 20 20 20 52 65 76 |es:. |. Rev|
|00001b30| 65 72 74 20 74 6f 20 74 | 68 65 20 6f 6c 64 20 66 |ert to t|he old f|
|00001b40| 6f 72 6d 61 74 20 6f 66 | 20 43 56 4e 65 74 20 6d |ormat of| CVNet m|
|00001b50| 61 73 74 65 72 20 6c 69 | 73 74 20 28 62 75 74 20 |aster li|st (but |
|00001b60| 77 69 74 68 6f 75 74 20 | 63 6f 6e 74 69 6e 75 61 |without |continua|
|00001b70| 74 69 6f 6e 20 6c 69 6e | 65 73 29 3a 0d 09 09 24 |tion lin|es):...$|
|00001b80| 4c 24 43 31 32 24 46 24 | 43 32 32 24 49 24 43 34 |L$C12$F$|C22$I$C4|
|00001b90| 33 24 41 0d 09 70 72 6f | 64 75 63 65 73 0d 09 09 |3$A..pro|duces...|
|00001ba0| 41 62 72 61 6d 6f 76 20 | 20 20 20 49 73 72 61 65 |Abramov | Israe|
|00001bb0| 6c 20 20 20 20 42 72 6f | 6f 6b 6c 79 6e 20 43 6f |l Bro|oklyn Co|
|00001bc0| 6c 6c 65 67 65 20 20 20 | 20 20 69 78 72 62 63 40 |llege | ixrbc@|
|00001bd0| 63 75 6e 79 76 6d 2e 62 | 69 74 6e 65 74 0d 0d 09 |cunyvm.b|itnet...|
|00001be0| 54 61 62 2d 73 65 70 61 | 72 61 74 65 64 20 41 53 |Tab-sepa|rated AS|
|00001bf0| 43 49 49 20 66 6f 72 6d | 61 74 20 66 6f 72 20 69 |CII form|at for i|
|00001c00| 6d 70 6f 72 74 69 6e 67 | 20 69 6e 74 6f 20 4e 65 |mporting| into Ne|
|00001c10| 58 54 20 53 70 65 65 64 | 44 65 58 20 61 70 70 6c |XT Speed|DeX appl|
|00001c20| 69 63 61 74 69 6f 6e 3a | 0d 09 09 24 4c 2c 20 24 |ication:|...$L, $|
|00001c30| 46 24 54 24 41 24 54 24 | 49 0d 09 70 72 6f 64 75 |F$T$A$T$|I..produ|
|00001c40| 63 65 73 0d 09 09 41 62 | 72 61 6d 6f 76 2c 20 49 |ces...Ab|ramov, I|
|00001c50| 73 72 61 65 6c 09 69 78 | 72 62 63 40 63 75 6e 79 |srael.ix|rbc@cuny|
|00001c60| 76 6d 2e 62 69 74 6e 65 | 74 09 42 72 6f 6f 6b 6c |vm.bitne|t.Brookl|
|00001c70| 79 6e 20 43 6f 6c 6c 65 | 67 65 0d 09 09 20 20 20 |yn Colle|ge... |
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 5e 20 20 20 | | ^ |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 5e 0d 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |^... | |
|00001cb0| 20 20 54 41 42 20 20 20 | 20 20 20 20 20 20 20 20 | TAB | |
|00001cc0| 20 20 20 20 20 20 54 41 | 42 0d 0d 09 41 20 62 61 | TA|B...A ba|
|00001cd0| 73 69 63 20 66 6f 72 6d | 61 74 20 6d 69 67 68 74 |sic form|at might|
|00001ce0| 20 64 65 6d 61 72 63 61 | 74 65 20 66 69 65 6c 64 | demarca|te field|
|00001cf0| 20 62 79 20 71 75 6f 74 | 65 73 20 61 6e 64 20 63 | by quot|es and c|
|00001d00| 6f 6d 6d 61 73 3a 0d 09 | 09 22 24 4c 22 2c 20 22 |ommas:..|."$L", "|
|00001d10| 24 46 22 2c 20 22 24 49 | 22 2c 20 22 24 41 22 0d |$F", "$I|", "$A".|
|00001d20| 09 70 72 6f 64 75 63 65 | 73 0d 09 09 22 41 62 72 |.produce|s..."Abr|
|00001d30| 61 6d 6f 76 22 2c 20 22 | 49 73 72 61 65 6c 22 2c |amov", "|Israel",|
|00001d40| 20 22 42 72 6f 6f 6b 6c | 79 6e 20 43 6f 6c 6c 65 | "Brookl|yn Colle|
|00001d50| 67 65 22 2c 20 22 69 78 | 72 62 63 40 63 75 6e 79 |ge", "ix|rbc@cuny|
|00001d60| 76 6d 2e 62 69 74 6e 65 | 74 22 0d 0d 20 20 20 2d |vm.bitne|t".. -|
|00001d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 20 20 20 52 65 |--------|--. Re|
|00001dc0| 76 69 73 69 6f 6e 20 68 | 69 73 74 6f 72 79 3a 0d |vision h|istory:.|
|00001dd0| 20 20 20 56 31 2e 30 30 | 2c 20 39 32 2d 30 36 2d | V1.00|, 92-06-|
|00001de0| 30 37 2c 20 49 7a 75 6d | 69 20 4f 68 7a 61 77 61 |07, Izum|i Ohzawa|
|00001df0| 2c 20 69 7a 75 6d 69 40 | 70 69 6e 6f 6b 6f 2e 62 |, izumi@|pinoko.b|
|00001e00| 65 72 6b 65 6c 65 79 2e | 65 64 75 0d 20 20 20 56 |erkeley.|edu. V|
|00001e10| 31 2e 30 31 2c 20 39 32 | 2d 30 36 2d 31 35 2c 20 |1.01, 92|-06-15, |
|00001e20| 44 65 6e 69 73 5f 50 65 | 6c 6c 69 40 69 73 72 2e |Denis_Pe|lli@isr.|
|00001e30| 73 79 72 2e 65 64 75 20 | 61 64 64 65 64 20 73 75 |syr.edu |added su|
|00001e40| 70 70 6f 72 74 20 66 6f | 72 20 4d 61 63 69 6e 74 |pport fo|r Macint|
|00001e50| 6f 73 68 2e 0d 20 20 20 | 56 31 2e 30 32 2c 20 39 |osh.. |V1.02, 9|
|00001e60| 32 2d 30 36 2d 31 36 2c | 20 49 7a 75 6d 69 20 4f |2-06-16,| Izumi O|
|00001e70| 68 7a 61 77 61 2c 20 61 | 64 64 65 64 20 73 75 70 |hzawa, a|dded sup|
|00001e80| 70 6f 72 74 20 66 6f 72 | 20 50 72 6f 6c 6f 67 2c |port for| Prolog,|
|00001e90| 20 45 70 69 6c 6f 67 2e | 0d 20 20 20 56 31 2e 30 | Epilog.|. V1.0|
|00001ea0| 33 2c 20 39 32 2d 30 36 | 2d 31 36 2c 20 44 65 6e |3, 92-06|-16, Den|
|00001eb0| 69 73 20 50 65 6c 6c 69 | 2c 20 73 65 74 20 74 79 |is Pelli|, set ty|
|00001ec0| 70 65 20 61 6e 64 20 63 | 72 65 61 74 6f 72 20 6f |pe and c|reator o|
|00001ed0| 66 20 4d 61 63 20 66 69 | 6c 65 73 0d 20 20 20 56 |f Mac fi|les. V|
|00001ee0| 31 2e 30 34 2c 20 39 32 | 2d 30 36 2d 31 37 2c 20 |1.04, 92|-06-17, |
|00001ef0| 49 7a 75 6d 69 20 26 20 | 44 65 6e 69 73 2c 20 6d |Izumi & |Denis, m|
|00001f00| 69 6e 6f 72 20 66 69 78 | 75 70 73 20 66 6f 72 20 |inor fix|ups for |
|00001f10| 70 6f 72 74 61 62 69 6c | 69 74 79 0d 20 20 20 56 |portabil|ity. V|
|00001f20| 31 2e 30 35 2c 20 39 32 | 2d 30 37 2d 30 31 2c 20 |1.05, 92|-07-01, |
|00001f30| 44 65 6e 69 73 20 66 69 | 78 65 64 20 62 75 67 20 |Denis fi|xed bug |
|00001f40| 72 65 70 6f 72 74 65 64 | 20 62 79 20 4c 61 72 72 |reported| by Larr|
|00001f50| 79 20 54 68 69 62 6f 73 | 2c 20 63 61 6e 20 6e 6f |y Thibos|, can no|
|00001f60| 77 20 6f 70 65 6e 0d 20 | 20 20 09 09 09 09 09 66 |w open. | .....f|
|00001f70| 69 6c 65 73 20 69 6e 20 | 61 6e 79 20 66 6f 6c 64 |iles in |any fold|
|00001f80| 65 72 2e 0d 20 20 20 76 | 31 2e 30 36 3f 2c 34 2f |er.. v|1.06?,4/|
|00001f90| 32 35 2f 39 33 2c 20 44 | 65 6e 69 73 20 63 68 61 |25/93, D|enis cha|
|00001fa0| 6e 67 65 64 20 63 61 6c | 6c 20 74 6f 20 4d 61 63 |nged cal|l to Mac|
|00001fb0| 69 6e 74 6f 73 68 20 53 | 46 47 65 74 46 69 6c 65 |intosh S|FGetFile|
|00001fc0| 28 29 20 74 6f 20 6f 6e | 6c 79 20 6c 69 73 74 20 |() to on|ly list |
|00001fd0| 54 45 58 54 20 66 69 6c | 65 73 2e 0d 20 20 20 09 |TEXT fil|es.. .|
|00001fe0| 09 09 09 09 45 6e 68 61 | 6e 63 65 64 20 66 61 74 |....Enha|nced fat|
|00001ff0| 61 6c 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |al error| message|
|00002000| 2e 0d 20 20 20 76 31 2e | 30 37 3f 2c 36 2f 31 32 |.. v1.|07?,6/12|
|00002010| 2f 39 34 2c 20 44 65 6e | 69 73 20 75 70 64 61 74 |/94, Den|is updat|
|00002020| 65 64 20 66 6f 72 20 63 | 6f 6d 70 61 74 69 62 69 |ed for c|ompatibi|
|00002030| 6c 69 74 79 20 77 69 74 | 68 20 41 70 70 6c 65 27 |lity wit|h Apple'|
|00002040| 73 20 55 6e 69 76 65 72 | 73 61 6c 20 68 65 61 64 |s Univer|sal head|
|00002050| 65 72 20 66 69 6c 65 73 | 2e 0d 20 20 20 09 09 09 |er files|.. ...|
|00002060| 09 09 23 64 65 66 69 6e | 65 20 5f 5f 53 54 44 43 |..#defin|e __STDC|
|00002070| 5f 5f 20 69 66 20 4d 41 | 43 20 69 73 20 74 72 75 |__ if MA|C is tru|
|00002080| 65 2e 0d 20 20 20 09 09 | 09 09 09 23 64 65 66 69 |e.. ..|...#defi|
|00002090| 6e 65 20 63 32 70 73 74 | 72 20 61 6e 64 20 70 32 |ne c2pst|r and p2|
|000020a0| 63 73 74 72 20 69 6e 20 | 74 65 72 6d 73 20 6f 66 |cstr in |terms of|
|000020b0| 20 53 79 6d 61 6e 74 65 | 63 27 73 20 43 74 6f 50 | Symante|c's CtoP|
|000020c0| 73 74 72 20 61 6e 64 20 | 50 74 6f 43 73 74 72 2e |str and |PtoCstr.|
|000020d0| 0d 20 20 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |. ----|--------|
|000020e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000020f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00002120| 2a 2f 0d 0d 2f 2a 20 23 | 23 23 23 23 23 23 20 55 |*/../* #|###### U|
|00002130| 6e 63 6f 6d 6d 65 6e 74 | 20 74 68 65 20 6f 6e 65 |ncomment| the one|
|00002140| 20 74 68 61 74 20 69 73 | 20 61 70 70 72 6f 70 72 | that is| appropr|
|00002150| 69 61 74 65 20 66 6f 72 | 20 79 6f 75 72 20 65 6e |iate for| your en|
|00002160| 76 69 72 6f 6e 6d 65 6e | 74 20 23 23 23 23 23 23 |vironmen|t ######|
|00002170| 23 23 23 23 23 20 2a 2f | 0d 2f 2a 20 23 64 65 66 |##### */|./* #def|
|00002180| 69 6e 65 20 55 4e 49 58 | 20 20 20 20 20 20 31 20 |ine UNIX| 1 |
|00002190| 2a 2f 09 09 2f 2a 20 53 | 75 6e 2c 20 4e 65 58 54 |*/../* S|un, NeXT|
|000021a0| 2c 20 42 53 44 2c 20 61 | 6e 64 20 6f 74 68 65 72 |, BSD, a|nd other|
|000021b0| 73 20 2a 2f 0d 2f 2a 20 | 23 64 65 66 69 6e 65 20 |s */./* |#define |
|000021c0| 4d 53 44 4f 53 20 20 20 | 20 20 31 20 2a 2f 09 09 |MSDOS | 1 */..|
|000021d0| 2f 2a 20 4d 69 63 72 6f | 73 6f 66 74 20 43 2c 20 |/* Micro|soft C, |
|000021e0| 54 75 72 62 6f 20 43 2c | 20 43 2b 2b 20 66 6f 72 |Turbo C,| C++ for|
|000021f0| 20 4d 53 44 4f 53 20 2a | 2f 0d 23 64 65 66 69 6e | MSDOS *|/.#defin|
|00002200| 65 20 4d 41 43 20 20 20 | 20 20 20 20 31 20 09 09 |e MAC | 1 ..|
|00002210| 09 2f 2a 20 4d 61 63 69 | 6e 74 6f 73 68 20 54 48 |./* Maci|ntosh TH|
|00002220| 49 4e 4b 20 43 20 2a 2f | 0d 0d 23 69 6e 63 6c 75 |INK C */|..#inclu|
|00002230| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0d 23 69 66 |de <stdi|o.h>.#if|
|00002240| 64 65 66 20 55 4e 49 58 | 0d 23 69 6e 63 6c 75 64 |def UNIX|.#includ|
|00002250| 65 20 3c 73 74 72 69 6e | 67 73 2e 68 3e 0d 23 65 |e <strin|gs.h>.#e|
|00002260| 6e 64 69 66 0d 23 69 66 | 64 65 66 20 4d 53 44 4f |ndif.#if|def MSDO|
|00002270| 53 0d 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 72 69 |S.#inclu|de <stri|
|00002280| 6e 67 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 23 69 66 |ng.h>.#e|ndif.#if|
|00002290| 64 65 66 20 4d 41 43 0d | 2f 2f 20 4d 61 63 20 43 |def MAC.|// Mac C|
|000022a0| 20 63 6f 6d 70 69 6c 65 | 72 73 20 69 6e 63 6c 75 | compile|rs inclu|
|000022b0| 64 65 20 65 78 74 65 6e | 73 69 6f 6e 73 20 62 65 |de exten|sions be|
|000022c0| 79 6f 6e 64 20 53 74 61 | 6e 64 61 72 64 20 43 2c |yond Sta|ndard C,|
|000022d0| 20 62 75 74 0d 2f 2f 20 | 66 6f 72 20 74 68 65 20 | but.// |for the |
|000022e0| 70 75 72 70 6f 73 65 73 | 20 6f 66 20 74 68 69 73 |purposes| of this|
|000022f0| 20 66 69 6c 65 20 61 72 | 65 20 62 65 73 74 20 74 | file ar|e best t|
|00002300| 68 6f 75 67 68 74 20 6f | 66 20 61 73 20 53 74 61 |hought o|f as Sta|
|00002310| 6e 64 61 72 64 20 43 2e | 0d 09 23 69 66 6e 64 65 |ndard C.|..#ifnde|
|00002320| 66 20 5f 5f 53 54 44 43 | 5f 5f 0d 09 09 23 64 65 |f __STDC|__...#de|
|00002330| 66 69 6e 65 20 5f 5f 53 | 54 44 43 5f 5f 20 30 0d |fine __S|TDC__ 0.|
|00002340| 09 23 65 6e 64 69 66 0d | 09 23 69 6e 63 6c 75 64 |.#endif.|.#includ|
|00002350| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0d 09 23 69 |e <strin|g.h>..#i|
|00002360| 6e 63 6c 75 64 65 20 3c | 53 74 61 6e 64 61 72 64 |nclude <|Standard|
|00002370| 46 69 6c 65 2e 68 3e 0d | 09 23 69 6e 63 6c 75 64 |File.h>.|.#includ|
|00002380| 65 20 3c 51 75 69 63 6b | 44 72 61 77 2e 68 3e 0d |e <Quick|Draw.h>.|
|00002390| 09 23 69 6e 63 6c 75 64 | 65 20 3c 4d 65 6d 6f 72 |.#includ|e <Memor|
|000023a0| 79 2e 68 3e 0d 09 23 69 | 6e 63 6c 75 64 65 20 3c |y.h>..#i|nclude <|
|000023b0| 46 6f 6e 74 73 2e 68 3e | 0d 09 23 69 6e 63 6c 75 |Fonts.h>|..#inclu|
|000023c0| 64 65 20 3c 44 69 61 6c | 6f 67 73 2e 68 3e 0d 09 |de <Dial|ogs.h>..|
|000023d0| 23 69 6e 63 6c 75 64 65 | 20 3c 45 76 65 6e 74 73 |#include| <Events|
|000023e0| 2e 68 3e 0d 09 23 69 6e | 63 6c 75 64 65 20 3c 4f |.h>..#in|clude <O|
|000023f0| 53 45 76 65 6e 74 73 2e | 68 3e 0d 09 23 69 6e 63 |SEvents.|h>..#inc|
|00002400| 6c 75 64 65 20 3c 46 69 | 6c 65 73 2e 68 3e 0d 09 |lude <Fi|les.h>..|
|00002410| 23 69 66 20 28 54 48 49 | 4e 4b 5f 43 20 7c 7c 20 |#if (THI|NK_C || |
|00002420| 54 48 49 4e 4b 5f 43 50 | 4c 55 53 29 0d 09 09 23 |THINK_CP|LUS)...#|
|00002430| 69 6e 63 6c 75 64 65 20 | 3c 70 61 73 63 61 6c 2e |include |<pascal.|
|00002440| 68 3e 09 2f 2a 20 43 74 | 6f 50 53 74 72 28 29 20 |h>./* Ct|oPStr() |
|00002450| 61 6e 64 20 50 74 6f 43 | 53 74 72 28 29 20 2a 2f |and PtoC|Str() */|
|00002460| 0d 09 09 23 69 66 6e 64 | 65 66 20 63 32 70 73 74 |...#ifnd|ef c2pst|
|00002470| 72 0d 09 09 09 23 64 65 | 66 69 6e 65 20 63 32 70 |r....#de|fine c2p|
|00002480| 73 74 72 20 43 74 6f 50 | 73 74 72 0d 09 09 09 23 |str CtoP|str....#|
|00002490| 64 65 66 69 6e 65 20 70 | 32 63 73 74 72 20 50 74 |define p|2cstr Pt|
|000024a0| 6f 43 73 74 72 0d 09 09 | 23 65 6e 64 69 66 0d 09 |oCstr...|#endif..|
|000024b0| 23 65 6c 73 65 0d 09 09 | 23 69 6e 63 6c 75 64 65 |#else...|#include|
|000024c0| 20 3c 53 74 72 69 6e 67 | 73 2e 68 3e 2f 2a 20 63 | <String|s.h>/* c|
|000024d0| 32 70 73 74 72 28 29 20 | 61 6e 64 20 70 32 63 73 |2pstr() |and p2cs|
|000024e0| 74 72 28 29 20 2a 2f 0d | 09 23 65 6e 64 69 66 0d |tr() */.|.#endif.|
|000024f0| 09 45 76 65 6e 74 52 65 | 63 6f 72 64 20 65 76 65 |.EventRe|cord eve|
|00002500| 6e 74 3b 0d 09 73 74 61 | 74 69 63 20 76 6f 69 64 |nt;..sta|tic void|
|00002510| 20 53 65 74 46 69 6c 65 | 49 6e 66 6f 28 63 68 61 | SetFile|Info(cha|
|00002520| 72 20 2a 66 69 6c 65 4e | 61 6d 65 2c 4f 53 54 79 |r *fileN|ame,OSTy|
|00002530| 70 65 20 66 69 6c 65 54 | 79 70 65 2c 4f 53 54 79 |pe fileT|ype,OSTy|
|00002540| 70 65 20 66 69 6c 65 43 | 72 65 61 74 6f 72 29 3b |pe fileC|reator);|
|00002550| 0d 23 65 6e 64 69 66 0d | 0d 23 69 66 64 65 66 20 |.#endif.|.#ifdef |
|00002560| 5f 5f 53 54 44 43 5f 5f | 09 09 09 2f 2a 20 41 4e |__STDC__|.../* AN|
|00002570| 53 49 2d 43 2d 73 74 79 | 6c 65 20 70 72 6f 74 6f |SI-C-sty|le proto|
|00002580| 74 79 70 65 73 20 2a 2f | 0d 23 69 6e 63 6c 75 64 |types */|.#includ|
|00002590| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 09 09 2f 2a |e <stdli|b.h>../*|
|000025a0| 20 65 78 69 74 28 29 20 | 61 6e 64 20 61 74 6f 69 | exit() |and atoi|
|000025b0| 28 29 20 2a 2f 0d 76 6f | 69 64 20 75 73 61 67 65 |() */.vo|id usage|
|000025c0| 28 76 6f 69 64 29 3b 0d | 76 6f 69 64 20 73 74 75 |(void);.|void stu|
|000025d0| 70 69 64 28 76 6f 69 64 | 29 3b 0d 63 68 61 72 20 |pid(void|);.char |
|000025e0| 2a 66 69 6e 64 65 78 28 | 63 68 61 72 20 2a 73 74 |*findex(|char *st|
|000025f0| 72 2c 20 63 68 61 72 20 | 63 68 29 3b 0d 76 6f 69 |r, char |ch);.voi|
|00002600| 64 20 72 65 6d 6f 76 65 | 5f 63 6f 6d 6d 61 28 63 |d remove|_comma(c|
|00002610| 68 61 72 20 2a 73 74 72 | 29 3b 0d 69 6e 74 20 63 |har *str|);.int c|
|00002620| 68 65 63 6b 5f 61 64 64 | 72 65 73 73 28 63 68 61 |heck_add|ress(cha|
|00002630| 72 20 2a 73 74 72 29 3b | 0d 76 6f 69 64 20 6f 75 |r *str);|.void ou|
|00002640| 74 73 74 72 69 6e 67 28 | 63 68 61 72 20 2a 73 74 |tstring(|char *st|
|00002650| 72 2c 20 46 49 4c 45 20 | 2a 66 70 29 3b 0d 76 6f |r, FILE |*fp);.vo|
|00002660| 69 64 20 6f 75 74 63 68 | 61 72 28 69 6e 74 20 63 |id outch|ar(int c|
|00002670| 2c 20 46 49 4c 45 20 2a | 66 70 29 3b 0d 76 6f 69 |, FILE *|fp);.voi|
|00002680| 64 20 77 72 69 74 65 5f | 72 65 63 6f 72 64 28 46 |d write_|record(F|
|00002690| 49 4c 45 20 2a 66 70 29 | 3b 0d 23 65 6e 64 69 66 |ILE *fp)|;.#endif|
|000026a0| 0d 0d 2f 2a 20 42 61 64 | 20 42 61 64 20 47 6c 6f |../* Bad| Bad Glo|
|000026b0| 62 61 6c 73 20 2a 2f 0d | 69 6e 74 20 6c 69 6e 65 |bals */.|int line|
|000026c0| 63 6e 74 20 3d 20 30 3b | 09 09 2f 2a 20 6e 75 6d |cnt = 0;|../* num|
|000026d0| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 63 |ber of l|ines inc|
|000026e0| 6c 75 64 69 6e 67 20 6a | 75 6e 6b 20 66 6f 72 20 |luding j|unk for |
|000026f0| 65 72 72 6f 72 20 72 65 | 70 6f 72 74 20 2a 2f 0d |error re|port */.|
|00002700| 69 6e 74 20 72 65 63 6f | 72 64 63 6e 74 20 3d 20 |int reco|rdcnt = |
|00002710| 30 3b 09 09 2f 2a 20 6e | 75 6d 62 65 72 20 6f 66 |0;../* n|umber of|
|00002720| 20 72 65 63 6f 72 64 73 | 20 70 72 6f 63 65 73 73 | records| process|
|00002730| 65 64 20 2a 2f 0d 69 6e | 74 20 63 6f 6c 75 6d 6e |ed */.in|t column|
|00002740| 20 3d 20 31 3b 09 09 09 | 2f 2a 20 63 75 72 72 65 | = 1;...|/* curre|
|00002750| 6e 74 20 63 6f 6c 75 6d | 6e 20 70 6f 73 69 74 69 |nt colum|n positi|
|00002760| 6f 6e 20 6f 66 20 6f 75 | 74 70 75 74 20 2a 2f 0d |on of ou|tput */.|
|00002770| 63 68 61 72 20 2a 6f 6b | 63 68 61 72 20 3d 20 22 |char *ok|char = "|
|00002780| 21 40 25 2e 2b 2d 5f 2f | 22 3b 09 2f 2a 20 6e 6f |!@%.+-_/|";./* no|
|00002790| 6e 2d 61 6c 70 68 61 6e | 75 6d 65 72 69 63 73 20 |n-alphan|umerics |
|000027a0| 74 68 61 74 20 61 72 65 | 20 4f 4b 20 69 6e 20 65 |that are| OK in e|
|000027b0| 2d 6d 61 69 6c 20 61 64 | 64 72 65 73 73 20 2a 2f |-mail ad|dress */|
|000027c0| 0d 63 68 61 72 20 2a 64 | 65 66 66 69 6c 65 20 3d |.char *d|effile =|
|000027d0| 20 22 63 76 6e 65 74 63 | 6e 76 2e 66 6d 74 22 3b | "cvnetc|nv.fmt";|
|000027e0| 09 2f 2a 20 64 65 66 61 | 75 6c 74 20 66 69 6c 65 |./* defa|ult file|
|000027f0| 6e 61 6d 65 20 66 6f 72 | 20 74 61 72 67 65 74 20 |name for| target |
|00002800| 66 6f 72 6d 61 74 20 73 | 70 65 63 69 66 69 63 61 |format s|pecifica|
|00002810| 74 69 6f 6e 20 2a 2f 0d | 63 68 61 72 20 2a 66 6d |tion */.|char *fm|
|00002820| 74 66 69 6c 65 3b 09 09 | 09 2f 2a 20 65 69 74 68 |tfile;..|./* eith|
|00002830| 65 72 20 64 65 66 66 69 | 6c 65 20 6f 72 20 61 72 |er deffi|le or ar|
|00002840| 67 76 5b 33 5d 20 69 66 | 20 67 69 76 65 6e 20 2a |gv[3] if| given *|
|00002850| 2f 0d 63 68 61 72 20 66 | 6d 74 5b 32 35 36 5d 3b |/.char f|mt[256];|
|00002860| 09 09 09 2f 2a 20 6f 75 | 74 70 75 74 20 66 6f 72 |.../* ou|tput for|
|00002870| 6d 61 74 20 73 74 72 69 | 6e 67 20 72 65 61 64 20 |mat stri|ng read |
|00002880| 66 72 6f 6d 20 66 6d 74 | 66 69 6c 65 20 2a 2f 0d |from fmt|file */.|
|00002890| 63 68 61 72 20 6c 69 6e | 65 62 75 66 5b 32 35 36 |char lin|ebuf[256|
|000028a0| 5d 3b 09 09 2f 2a 20 6c | 69 6e 65 20 62 75 66 66 |];../* l|ine buff|
|000028b0| 65 72 20 66 6f 72 20 43 | 56 4e 65 74 20 66 69 6c |er for C|VNet fil|
|000028c0| 65 20 2a 2f 0d 63 68 61 | 72 20 66 4c 69 6e 65 42 |e */.cha|r fLineB|
|000028d0| 75 66 66 65 72 5b 32 35 | 36 5d 3b 09 09 2f 2a 20 |uffer[25|6];../* |
|000028e0| 6c 69 6e 65 20 62 75 66 | 66 65 72 20 66 6f 72 20 |line buf|fer for |
|000028f0| 66 6f 72 6d 61 74 20 66 | 69 6c 65 20 2a 2f 0d 63 |format f|ile */.c|
|00002900| 68 61 72 20 74 6d 70 62 | 75 66 5b 32 35 36 5d 3b |har tmpb|uf[256];|
|00002910| 09 09 2f 2a 20 62 75 66 | 66 65 72 20 66 6f 72 20 |../* buf|fer for |
|00002920| 70 72 6f 63 65 73 73 69 | 6e 67 20 2a 2f 0d 63 68 |processi|ng */.ch|
|00002930| 61 72 20 6c 61 73 74 6e | 61 6d 65 5b 31 32 38 5d |ar lastn|ame[128]|
|00002940| 3b 09 09 2f 2a 20 53 74 | 6f 72 61 67 65 20 66 6f |;../* St|orage fo|
|00002950| 72 20 6c 61 73 74 20 6e | 61 6d 65 20 2a 2f 0d 63 |r last n|ame */.c|
|00002960| 68 61 72 20 66 69 72 73 | 74 69 6e 69 5b 31 32 38 |har firs|tini[128|
|00002970| 5d 3b 09 09 2f 2a 20 53 | 74 6f 72 61 67 65 20 66 |];../* S|torage f|
|00002980| 6f 72 20 66 69 72 73 74 | 20 6e 61 6d 65 2c 20 69 |or first| name, i|
|00002990| 6e 69 74 69 61 6c 20 2a | 2f 0d 63 68 61 72 20 61 |nitial *|/.char a|
|000029a0| 66 66 69 6c 69 61 74 69 | 6f 6e 5b 31 32 38 5d 3b |ffiliati|on[128];|
|000029b0| 09 09 2f 2a 20 53 74 6f | 72 61 67 65 20 66 6f 72 |../* Sto|rage for|
|000029c0| 20 69 6e 73 74 69 74 75 | 74 69 6f 6e 61 6c 20 61 | institu|tional a|
|000029d0| 66 66 69 6c 69 61 74 69 | 6f 6e 20 2a 2f 0d 63 68 |ffiliati|on */.ch|
|000029e0| 61 72 20 65 6d 61 64 64 | 72 65 73 73 5b 31 32 38 |ar emadd|ress[128|
|000029f0| 5d 3b 09 09 2f 2a 20 53 | 74 6f 72 61 67 65 20 66 |];../* S|torage f|
|00002a00| 6f 72 20 65 2d 6d 61 69 | 6c 20 61 64 64 72 65 73 |or e-mai|l addres|
|00002a10| 73 20 2a 2f 0d 0d 23 69 | 66 64 65 66 20 4d 41 43 |s */..#i|fdef MAC|
|00002a20| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 53 65 74 |.static |void Set|
|00002a30| 46 69 6c 65 49 6e 66 6f | 28 63 68 61 72 20 2a 66 |FileInfo|(char *f|
|00002a40| 69 6c 65 4e 61 6d 65 2c | 4f 53 54 79 70 65 20 66 |ileName,|OSType f|
|00002a50| 69 6c 65 54 79 70 65 2c | 4f 53 54 79 70 65 20 66 |ileType,|OSType f|
|00002a60| 69 6c 65 43 72 65 61 74 | 6f 72 29 0d 7b 0d 09 46 |ileCreat|or).{..F|
|00002a70| 49 6e 66 6f 20 6f 75 74 | 46 69 6c 65 49 6e 66 6f |Info out|FileInfo|
|00002a80| 3b 0d 09 0d 09 63 32 70 | 73 74 72 28 66 69 6c 65 |;....c2p|str(file|
|00002a90| 4e 61 6d 65 29 3b 0d 09 | 47 65 74 46 49 6e 66 6f |Name);..|GetFInfo|
|00002aa0| 28 28 53 74 72 69 6e 67 | 50 74 72 29 66 69 6c 65 |((String|Ptr)file|
|00002ab0| 4e 61 6d 65 2c 30 2c 26 | 6f 75 74 46 69 6c 65 49 |Name,0,&|outFileI|
|00002ac0| 6e 66 6f 29 3b 0d 09 6f | 75 74 46 69 6c 65 49 6e |nfo);..o|utFileIn|
|00002ad0| 66 6f 2e 66 64 54 79 70 | 65 20 3d 20 66 69 6c 65 |fo.fdTyp|e = file|
|00002ae0| 54 79 70 65 3b 0d 09 6f | 75 74 46 69 6c 65 49 6e |Type;..o|utFileIn|
|00002af0| 66 6f 2e 66 64 43 72 65 | 61 74 6f 72 20 3d 20 66 |fo.fdCre|ator = f|
|00002b00| 69 6c 65 43 72 65 61 74 | 6f 72 3b 0d 09 53 65 74 |ileCreat|or;..Set|
|00002b10| 46 49 6e 66 6f 28 28 53 | 74 72 69 6e 67 50 74 72 |FInfo((S|tringPtr|
|00002b20| 29 66 69 6c 65 4e 61 6d | 65 2c 30 2c 26 6f 75 74 |)fileNam|e,0,&out|
|00002b30| 46 69 6c 65 49 6e 66 6f | 29 3b 0d 09 70 32 63 73 |FileInfo|);..p2cs|
|00002b40| 74 72 28 28 76 6f 69 64 | 20 2a 29 66 69 6c 65 4e |tr((void| *)fileN|
|00002b50| 61 6d 65 29 3b 0d 7d 0d | 23 65 6e 64 69 66 0d 0d |ame);.}.|#endif..|
|00002b60| 2f 2a 20 5f 5f 53 54 44 | 43 5f 5f 20 69 73 20 61 |/* __STD|C__ is a|
|00002b70| 20 70 72 65 64 65 66 69 | 6e 65 64 20 6d 61 63 72 | predefi|ned macr|
|00002b80| 6f 20 66 6f 72 20 41 4e | 53 49 2d 73 74 61 6e 64 |o for AN|SI-stand|
|00002b90| 61 72 64 20 43 2e 0d 20 | 2a 20 54 68 69 73 20 73 |ard C.. |* This s|
|00002ba0| 74 75 66 66 20 69 73 20 | 6e 65 65 64 65 64 20 74 |tuff is |needed t|
|00002bb0| 6f 20 69 6e 63 72 65 61 | 73 65 20 70 6f 72 74 61 |o increa|se porta|
|00002bc0| 62 69 6c 69 74 79 20 66 | 6f 72 20 73 6f 6d 65 20 |bility f|or some |
|00002bd0| 6f 62 73 6f 6c 65 74 65 | 20 43 20 63 6f 6d 70 69 |obsolete| C compi|
|00002be0| 6c 65 72 73 2e 0d 20 2a | 2f 0d 0d 23 69 66 64 65 |lers.. *|/..#ifde|
|00002bf0| 66 20 5f 5f 53 54 44 43 | 5f 5f 0d 76 6f 69 64 20 |f __STDC|__.void |
|00002c00| 75 73 61 67 65 28 76 6f | 69 64 29 0d 23 65 6c 73 |usage(vo|id).#els|
|00002c10| 65 0d 75 73 61 67 65 28 | 29 0d 23 65 6e 64 69 66 |e.usage(|).#endif|
|00002c20| 0d 7b 0d 23 69 66 64 65 | 66 20 4d 41 43 0d 09 20 |.{.#ifde|f MAC.. |
|00002c30| 20 20 20 70 72 69 6e 74 | 66 28 22 54 68 69 73 20 | print|f("This |
|00002c40| 70 72 6f 67 72 61 6d 20 | 61 73 6b 73 20 79 6f 75 |program |asks you|
|00002c50| 20 74 6f 20 6f 70 65 6e | 20 79 6f 75 72 20 43 56 | to open| your CV|
|00002c60| 4e 65 74 20 6d 61 73 74 | 65 72 20 66 69 6c 65 2c |Net mast|er file,|
|00002c70| 5c 6e 22 29 3b 0d 09 20 | 20 20 20 70 72 69 6e 74 |\n");.. | print|
|00002c80| 66 28 22 20 20 20 20 20 | 61 6e 64 20 68 6f 77 20 |f(" |and how |
|00002c90| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 73 61 76 65 |you want| to save|
|00002ca0| 20 69 74 2e 5c 6e 22 29 | 3b 0d 09 20 20 20 20 70 | it.\n")|;.. p|
|00002cb0| 72 69 6e 74 66 28 22 20 | 20 20 20 20 41 6e 64 2c |rintf(" | And,|
|00002cc0| 20 75 6e 6c 65 73 73 20 | 74 68 65 72 65 20 69 73 | unless |there is|
|00002cd0| 20 61 20 66 6f 72 6d 61 | 74 20 66 69 6c 65 20 63 | a forma|t file c|
|00002ce0| 61 6c 6c 65 64 20 5c 22 | 25 73 5c 22 2c 5c 6e 22 |alled \"|%s\",\n"|
|00002cf0| 2c 64 65 66 66 69 6c 65 | 29 3b 0d 09 20 20 20 20 |,deffile|);.. |
|00002d00| 70 72 69 6e 74 66 28 22 | 20 20 20 20 20 61 73 6b |printf("| ask|
|00002d10| 73 20 79 6f 75 20 74 6f | 20 6f 70 65 6e 20 79 6f |s you to| open yo|
|00002d20| 75 72 20 6f 77 6e 20 66 | 6f 72 6d 61 74 20 66 69 |ur own f|ormat fi|
|00002d30| 6c 65 2e 5c 6e 22 29 3b | 0d 09 20 20 20 20 66 6d |le.\n");|.. fm|
|00002d40| 74 66 69 6c 65 3d 64 65 | 66 66 69 6c 65 3b 0d 23 |tfile=de|ffile;.#|
|00002d50| 65 6c 73 65 0d 09 70 72 | 69 6e 74 66 28 22 55 73 |else..pr|intf("Us|
|00002d60| 61 67 65 3a 20 63 76 6e | 65 74 63 6e 76 20 69 6e |age: cvn|etcnv in|
|00002d70| 70 75 74 66 69 6c 65 20 | 6f 75 74 70 75 74 66 69 |putfile |outputfi|
|00002d80| 6c 65 20 5b 66 6f 72 6d | 61 74 66 69 6c 65 5d 5c |le [form|atfile]\|
|00002d90| 6e 22 29 3b 0d 23 65 6e | 64 69 66 0d 09 70 72 69 |n");.#en|dif..pri|
|00002da0| 6e 74 66 28 22 20 20 2a | 54 68 69 73 20 70 72 6f |ntf(" *|This pro|
|00002db0| 67 72 61 6d 20 63 6f 6e | 76 65 72 74 73 20 74 68 |gram con|verts th|
|00002dc0| 65 20 43 56 4e 65 74 20 | 6d 61 73 74 65 72 20 6c |e CVNet |master l|
|00002dd0| 69 73 74 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 66 |ist to a|nother f|
|00002de0| 6f 72 6d 61 74 5c 6e 22 | 29 3b 0d 09 70 72 69 6e |ormat\n"|);..prin|
|00002df0| 74 66 28 22 20 20 20 20 | 20 61 73 20 73 70 65 63 |tf(" | as spec|
|00002e00| 69 66 69 65 64 20 69 6e | 20 66 69 6c 65 20 3c 25 |ified in| file <%|
|00002e10| 73 3e 2e 5c 6e 22 2c 20 | 66 6d 74 66 69 6c 65 29 |s>.\n", |fmtfile)|
|00002e20| 3b 0d 09 70 72 69 6e 74 | 66 28 22 20 20 20 20 20 |;..print|f(" |
|00002e30| 50 6c 65 61 73 65 20 6c | 6f 6f 6b 20 61 74 20 65 |Please l|ook at e|
|00002e40| 78 61 6d 70 6c 65 20 66 | 6f 72 6d 61 74 20 73 70 |xample f|ormat sp|
|00002e50| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 66 69 6c 65 |ecificat|ion file|
|00002e60| 73 20 77 69 74 68 20 2a | 2e 66 6d 74 5c 6e 22 29 |s with *|.fmt\n")|
|00002e70| 3b 0d 09 70 72 69 6e 74 | 66 28 22 20 20 20 20 20 |;..print|f(" |
|00002e80| 65 78 74 65 6e 73 69 6f | 6e 2e 5c 6e 22 29 3b 0d |extensio|n.\n");.|
|00002e90| 09 70 72 69 6e 74 66 28 | 22 20 20 2a 59 6f 75 20 |.printf(|" *You |
|00002ea0| 64 6f 20 6e 6f 74 20 68 | 61 76 65 20 74 6f 20 65 |do not h|ave to e|
|00002eb0| 64 69 74 20 6f 75 74 20 | 74 68 65 20 45 2d 6d 61 |dit out |the E-ma|
|00002ec0| 69 6c 20 68 65 61 64 65 | 72 20 6f 72 20 61 6e 79 |il heade|r or any|
|00002ed0| 20 6f 74 68 65 72 5c 6e | 22 29 3b 0d 09 70 72 69 | other\n|");..pri|
|00002ee0| 6e 74 66 28 22 20 20 20 | 20 20 74 65 78 74 20 61 |ntf(" | text a|
|00002ef0| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00002f00| 61 6e 64 20 65 6e 64 20 | 6f 66 20 69 6e 70 75 74 |and end |of input|
|00002f10| 20 66 69 6c 65 2e 5c 6e | 22 29 3b 0d 23 69 66 64 | file.\n|");.#ifd|
|00002f20| 65 66 20 4d 41 43 0d 09 | 20 20 20 20 70 72 69 6e |ef MAC..| prin|
|00002f30| 74 66 28 22 43 6c 69 63 | 6b 20 74 68 69 73 20 77 |tf("Clic|k this w|
|00002f40| 69 6e 64 6f 77 20 74 6f | 20 65 78 69 74 3a 5c 6e |indow to| exit:\n|
|00002f50| 22 29 3b 0d 09 20 20 20 | 20 46 6c 75 73 68 45 76 |");.. | FlushEv|
|00002f60| 65 6e 74 73 28 65 76 65 | 72 79 45 76 65 6e 74 2c |ents(eve|ryEvent,|
|00002f70| 30 29 3b 0d 09 20 20 20 | 20 77 68 69 6c 65 28 21 |0);.. | while(!|
|00002f80| 47 65 74 4e 65 78 74 45 | 76 65 6e 74 28 65 76 65 |GetNextE|vent(eve|
|00002f90| 72 79 45 76 65 6e 74 2c | 26 65 76 65 6e 74 29 29 |ryEvent,|&event))|
|00002fa0| 20 3b 0d 23 65 6e 64 69 | 66 0d 09 65 78 69 74 28 | ;.#endi|f..exit(|
|00002fb0| 31 29 3b 0d 7d 0d 0d 23 | 69 66 64 65 66 20 5f 5f |1);.}..#|ifdef __|
|00002fc0| 53 54 44 43 5f 5f 0d 76 | 6f 69 64 20 73 74 75 70 |STDC__.v|oid stup|
|00002fd0| 69 64 28 76 6f 69 64 29 | 0d 23 65 6c 73 65 0d 73 |id(void)|.#else.s|
|00002fe0| 74 75 70 69 64 28 29 0d | 23 65 6e 64 69 66 0d 7b |tupid().|#endif.{|
|00002ff0| 0d 70 72 69 6e 74 66 28 | 22 23 23 23 23 23 20 57 |.printf(|"##### W|
|00003000| 41 52 4e 49 4e 47 20 21 | 21 21 20 57 41 52 4e 49 |ARNING !|!! WARNI|
|00003010| 4e 47 20 21 21 21 20 57 | 41 52 4e 49 4e 47 20 21 |NG !!! W|ARNING !|
|00003020| 21 21 20 57 41 52 4e 49 | 4e 47 20 21 21 21 20 23 |!! WARNI|NG !!! #|
|00003030| 23 23 23 23 5c 6e 5c 6e | 22 29 3b 0d 70 72 69 6e |####\n\n|");.prin|
|00003040| 74 66 28 22 20 20 50 6c | 65 61 73 65 20 44 4f 20 |tf(" Pl|ease DO |
|00003050| 4e 4f 54 20 41 42 55 53 | 45 20 74 68 65 20 63 6f |NOT ABUS|E the co|
|00003060| 6d 70 75 74 65 72 20 72 | 65 61 64 61 62 6c 65 20 |mputer r|eadable |
|00003070| 64 61 74 61 62 61 73 65 | 20 79 6f 75 5c 6e 22 29 |database| you\n")|
|00003080| 3b 0d 70 72 69 6e 74 66 | 28 22 67 65 6e 65 72 61 |;.printf|("genera|
|00003090| 74 65 20 75 73 69 6e 67 | 20 74 68 69 73 20 70 72 |te using| this pr|
|000030a0| 6f 67 72 61 6d 2e 20 20 | 4d 61 69 6c 69 6e 67 20 |ogram. |Mailing |
|000030b0| 64 69 72 65 63 74 6c 79 | 20 66 72 6f 6d 20 79 6f |directly| from yo|
|000030c0| 75 72 5c 6e 22 29 3b 0d | 70 72 69 6e 74 66 28 22 |ur\n");.|printf("|
|000030d0| 63 6f 6d 70 75 74 65 72 | 20 74 6f 20 61 6c 6c 20 |computer| to all |
|000030e0| 6d 65 6d 62 65 72 73 20 | 6f 66 20 43 56 4e 65 74 |members |of CVNet|
|000030f0| 20 69 73 20 2a 41 42 55 | 53 45 2a 21 20 20 4e 6f | is *ABU|SE*! No|
|00003100| 20 6d 61 74 74 65 72 5c | 6e 22 29 3b 0d 70 72 69 | matter\|n");.pri|
|00003110| 6e 74 66 28 22 68 6f 77 | 20 68 6f 74 20 61 20 6d |ntf("how| hot a m|
|00003120| 61 6e 75 73 63 72 69 70 | 74 20 6f 72 20 68 6f 77 |anuscrip|t or how|
|00003130| 20 67 72 65 61 74 20 61 | 20 70 72 6f 64 75 63 74 | great a| product|
|00003140| 20 79 6f 75 20 68 61 76 | 65 2c 20 64 6f 5c 6e 22 | you hav|e, do\n"|
|00003150| 29 3b 0d 70 72 69 6e 74 | 66 28 22 6e 6f 74 20 73 |);.print|f("not s|
|00003160| 65 6e 64 20 6d 61 69 6c | 73 20 74 6f 20 65 76 65 |end mail|s to eve|
|00003170| 72 79 6f 6e 65 20 64 69 | 72 65 63 74 6c 79 2e 20 |ryone di|rectly. |
|00003180| 20 49 66 20 79 6f 75 20 | 74 68 69 6e 6b 20 79 6f | If you |think yo|
|00003190| 75 20 68 61 76 65 5c 6e | 22 29 3b 0d 70 72 69 6e |u have\n|");.prin|
|000031a0| 74 66 28 22 73 6f 6d 65 | 20 69 6d 70 6f 72 74 61 |tf("some| importa|
|000031b0| 6e 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |nt infor|mation f|
|000031c0| 6f 72 20 61 20 6c 6f 74 | 20 6f 66 20 70 65 6f 70 |or a lot| of peop|
|000031d0| 6c 65 2c 20 73 65 6e 64 | 20 69 74 5c 6e 22 29 3b |le, send| it\n");|
|000031e0| 0d 70 72 69 6e 74 66 28 | 22 74 6f 20 43 56 4e 45 |.printf(|"to CVNE|
|000031f0| 54 40 76 6d 31 2e 79 6f | 72 6b 75 2e 63 61 2e 20 |T@vm1.yo|rku.ca. |
|00003200| 20 49 74 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 | It will| not be |
|00003210| 73 65 6e 74 20 74 6f 20 | 74 68 65 20 6d 65 6d 62 |sent to |the memb|
|00003220| 65 72 73 5c 6e 22 29 3b | 0d 70 72 69 6e 74 66 28 |ers\n");|.printf(|
|00003230| 22 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 2c 20 |"automat|ically, |
|00003240| 68 6f 77 65 76 65 72 2e | 20 20 54 68 65 20 63 6f |however.| The co|
|00003250| 6f 72 64 69 6e 61 74 6f | 72 20 6f 66 20 43 56 4e |ordinato|r of CVN|
|00003260| 65 74 20 77 69 6c 6c 5c | 6e 22 29 3b 0d 70 72 69 |et will\|n");.pri|
|00003270| 6e 74 66 28 22 72 65 76 | 69 65 77 20 79 6f 75 72 |ntf("rev|iew your|
|00003280| 20 73 75 62 6d 69 73 73 | 69 6f 6e 20 61 63 63 6f | submiss|ion acco|
|00003290| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 72 75 6c |rding to| the rul|
|000032a0| 65 73 20 64 65 76 65 6c | 6f 70 65 64 5c 6e 22 29 |es devel|oped\n")|
|000032b0| 3b 0d 70 72 69 6e 74 66 | 28 22 6f 76 65 72 20 74 |;.printf|("over t|
|000032c0| 68 65 20 79 65 61 72 73 | 20 61 73 20 61 20 72 65 |he years| as a re|
|000032d0| 73 75 6c 74 20 6f 66 20 | 66 65 65 64 62 61 63 6b |sult of |feedback|
|000032e0| 20 66 72 6f 6d 20 74 68 | 65 20 6d 65 6d 62 65 72 | from th|e member|
|000032f0| 73 2e 5c 6e 22 29 3b 0d | 70 72 69 6e 74 66 28 22 |s.\n");.|printf("|
|00003300| 20 20 50 6c 65 61 73 65 | 20 61 6c 73 6f 20 64 6f | Please| also do|
|00003310| 20 6e 6f 74 20 67 69 76 | 65 20 6f 75 74 20 74 68 | not giv|e out th|
|00003320| 65 20 64 61 74 61 62 61 | 73 65 20 74 6f 20 6e 6f |e databa|se to no|
|00003330| 6e 2d 6d 65 6d 62 65 72 | 73 2e 5c 6e 22 29 3b 0d |n-member|s.\n");.|
|00003340| 70 72 69 6e 74 66 28 22 | 20 20 49 20 77 72 6f 74 |printf("| I wrot|
|00003350| 65 20 74 68 69 73 20 70 | 72 6f 67 72 61 6d 20 74 |e this p|rogram t|
|00003360| 6f 20 67 69 76 65 20 75 | 73 20 63 6f 6e 76 65 6e |o give u|s conven|
|00003370| 69 65 6e 63 65 20 69 6e | 20 66 69 6e 64 69 6e 67 |ience in| finding|
|00003380| 5c 6e 22 29 3b 0d 70 72 | 69 6e 74 66 28 22 74 68 |\n");.pr|intf("th|
|00003390| 65 20 65 2d 6d 61 69 6c | 20 61 64 64 72 65 73 73 |e e-mail| address|
|000033a0| 20 6f 66 20 6f 75 72 20 | 63 6f 6c 6c 65 61 67 75 | of our |colleagu|
|000033b0| 65 73 2e 20 20 41 62 75 | 73 65 20 6f 66 20 74 68 |es. Abu|se of th|
|000033c0| 65 5c 6e 22 29 3b 0d 70 | 72 69 6e 74 66 28 22 64 |e\n");.p|rintf("d|
|000033d0| 61 74 61 62 61 73 65 20 | 77 69 6c 6c 20 6c 65 61 |atabase |will lea|
|000033e0| 64 20 74 6f 20 79 6f 75 | 72 20 65 78 70 75 6c 73 |d to you|r expuls|
|000033f0| 69 6f 6e 20 66 72 6f 6d | 20 43 56 4e 65 74 2c 5c |ion from| CVNet,\|
|00003400| 6e 22 29 3b 0d 70 72 69 | 6e 74 66 28 22 6e 6f 74 |n");.pri|ntf("not|
|00003410| 20 74 6f 20 6d 65 6e 74 | 69 6f 6e 20 74 68 61 74 | to ment|ion that|
|00003420| 20 65 76 65 72 79 6f 6e | 65 20 77 69 6c 6c 20 68 | everyon|e will h|
|00003430| 61 74 65 20 79 6f 75 20 | 66 6f 72 20 69 74 2e 5c |ate you |for it.\|
|00003440| 6e 22 29 3b 0d 70 72 69 | 6e 74 66 28 22 23 23 23 |n");.pri|ntf("###|
|00003450| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003460| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003470| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003480| 23 23 23 23 23 23 23 23 | 5c 6e 5c 6e 22 29 3b 0d |########|\n\n");.|
|00003490| 23 69 66 6e 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |#ifndef |__STDC__|
|000034a0| 0d 72 65 74 75 72 6e 28 | 30 29 3b 0d 23 65 6e 64 |.return(|0);.#end|
|000034b0| 69 66 0d 7d 0d 0d 0d 2f | 2a 20 53 69 67 68 2e 20 |if.}.../|* Sigh. |
|000034c0| 4e 6f 74 20 61 6c 6c 20 | 43 20 6c 69 62 72 61 72 |Not all |C librar|
|000034d0| 69 65 73 20 69 6e 63 6c | 75 64 65 20 69 6e 64 65 |ies incl|ude inde|
|000034e0| 78 28 63 68 61 72 20 2a | 73 74 72 2c 20 63 68 61 |x(char *|str, cha|
|000034f0| 72 20 63 68 29 20 66 75 | 6e 63 74 69 6f 6e 20 2a |r ch) fu|nction *|
|00003500| 2f 0d 23 69 66 64 65 66 | 20 5f 5f 53 54 44 43 5f |/.#ifdef| __STDC_|
|00003510| 5f 0d 63 68 61 72 20 2a | 66 69 6e 64 65 78 28 63 |_.char *|findex(c|
|00003520| 68 61 72 20 2a 73 74 72 | 2c 20 63 68 61 72 20 63 |har *str|, char c|
|00003530| 68 29 0d 23 65 6c 73 65 | 0d 63 68 61 72 20 2a 66 |h).#else|.char *f|
|00003540| 69 6e 64 65 78 28 73 74 | 72 2c 20 63 68 29 0d 63 |index(st|r, ch).c|
|00003550| 68 61 72 20 2a 73 74 72 | 3b 0d 63 68 61 72 20 63 |har *str|;.char c|
|00003560| 68 3b 0d 23 65 6e 64 69 | 66 0d 7b 0d 63 68 61 72 |h;.#endi|f.{.char|
|00003570| 20 2a 70 2c 20 2a 65 6e | 64 3b 0d 09 70 20 3d 20 | *p, *en|d;..p = |
|00003580| 65 6e 64 20 3d 20 73 74 | 72 3b 0d 09 77 68 69 6c |end = st|r;..whil|
|00003590| 65 28 2a 65 6e 64 20 21 | 3d 20 27 5c 30 27 29 20 |e(*end !|= '\0') |
|000035a0| 65 6e 64 2b 2b 3b 09 20 | 20 20 20 2f 2a 20 65 6e |end++;. | /* en|
|000035b0| 64 20 70 6f 69 6e 74 73 | 20 74 6f 20 73 74 72 69 |d points| to stri|
|000035c0| 6e 67 20 74 65 72 6d 69 | 6e 61 74 6f 72 20 2a 2f |ng termi|nator */|
|000035d0| 0d 09 77 68 69 6c 65 28 | 2a 70 20 21 3d 20 63 68 |..while(|*p != ch|
|000035e0| 20 26 26 20 2a 70 20 21 | 3d 20 27 5c 30 27 29 20 | && *p !|= '\0') |
|000035f0| 70 2b 2b 3b 20 20 2f 2a | 20 70 20 70 6f 69 6e 74 |p++; /*| p point|
|00003600| 73 20 74 6f 20 63 68 61 | 72 20 63 68 20 69 66 20 |s to cha|r ch if |
|00003610| 70 72 65 73 65 6e 74 20 | 2a 2f 0d 09 69 66 28 70 |present |*/..if(p|
|00003620| 20 21 3d 20 65 6e 64 29 | 20 72 65 74 75 72 6e 20 | != end)| return |
|00003630| 28 70 29 3b 0d 09 65 6c | 73 65 20 7b 0d 09 20 20 |(p);..el|se {.. |
|00003640| 20 20 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 | fprint|f(stderr|
|00003650| 2c 20 22 5c 6e 46 41 54 | 41 4c 20 45 52 52 4f 52 |, "\nFAT|AL ERROR|
|00003660| 3a 20 4c 69 6e 65 20 25 | 64 20 6f 66 20 69 6e 70 |: Line %|d of inp|
|00003670| 75 74 20 66 69 6c 65 20 | 69 73 20 6d 69 73 73 69 |ut file |is missi|
|00003680| 6e 67 20 5c 22 25 63 5c | 22 20 63 68 61 72 61 63 |ng \"%c\|" charac|
|00003690| 74 65 72 3a 5c 6e 22 2c | 0d 09 09 09 6c 69 6e 65 |ter:\n",|....line|
|000036a0| 63 6e 74 2c 20 63 68 29 | 3b 0d 09 20 20 20 20 66 |cnt, ch)|;.. f|
|000036b0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|000036c0| 25 73 5c 6e 22 2c 73 74 | 72 29 3b 09 2f 2a 20 64 |%s\n",st|r);./* d|
|000036d0| 67 70 20 2a 2f 0d 09 20 | 20 20 20 66 70 72 69 6e |gp */.. | fprin|
|000036e0| 74 66 28 73 74 64 65 72 | 72 2c 22 5c 6e 42 45 57 |tf(stder|r,"\nBEW|
|000036f0| 41 52 45 3a 20 74 68 65 | 20 6f 75 74 70 75 74 20 |ARE: the| output |
|00003700| 66 69 6c 65 20 69 73 20 | 69 6e 63 6f 6d 70 6c 65 |file is |incomple|
|00003710| 74 65 2e 5c 6e 22 29 3b | 0d 23 69 66 64 65 66 20 |te.\n");|.#ifdef |
|00003720| 4d 41 43 0d 09 09 70 72 | 69 6e 74 66 28 22 43 6c |MAC...pr|intf("Cl|
|00003730| 69 63 6b 20 74 68 69 73 | 20 77 69 6e 64 6f 77 20 |ick this| window |
|00003740| 74 6f 20 65 78 69 74 3a | 5c 6e 22 29 3b 0d 09 09 |to exit:|\n");...|
|00003750| 46 6c 75 73 68 45 76 65 | 6e 74 73 28 65 76 65 72 |FlushEve|nts(ever|
|00003760| 79 45 76 65 6e 74 2c 30 | 29 3b 0d 09 09 77 68 69 |yEvent,0|);...whi|
|00003770| 6c 65 28 21 47 65 74 4e | 65 78 74 45 76 65 6e 74 |le(!GetN|extEvent|
|00003780| 28 65 76 65 72 79 45 76 | 65 6e 74 2c 26 65 76 65 |(everyEv|ent,&eve|
|00003790| 6e 74 29 29 20 3b 0d 23 | 65 6e 64 69 66 0d 09 20 |nt)) ;.#|endif.. |
|000037a0| 20 20 20 65 78 69 74 28 | 34 29 3b 0d 09 7d 0d 09 | exit(|4);..}..|
|000037b0| 72 65 74 75 72 6e 20 28 | 4e 55 4c 4c 29 3b 09 09 |return (|NULL);..|
|000037c0| 2f 2a 20 69 74 20 73 68 | 6f 75 6c 64 6e 27 74 20 |/* it sh|ouldn't |
|000037d0| 63 6f 6d 65 20 68 65 72 | 65 20 2a 2f 0d 7d 0d 0d |come her|e */.}..|
|000037e0| 0d 23 69 66 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |.#ifdef |__STDC__|
|000037f0| 0d 76 6f 69 64 20 72 65 | 6d 6f 76 65 5f 63 6f 6d |.void re|move_com|
|00003800| 6d 61 28 63 68 61 72 20 | 2a 73 74 72 29 0d 23 65 |ma(char |*str).#e|
|00003810| 6c 73 65 0d 72 65 6d 6f | 76 65 5f 63 6f 6d 6d 61 |lse.remo|ve_comma|
|00003820| 28 73 74 72 29 0d 63 68 | 61 72 20 2a 73 74 72 3b |(str).ch|ar *str;|
|00003830| 0d 23 65 6e 64 69 66 0d | 7b 0d 73 74 61 74 69 63 |.#endif.|{.static|
|00003840| 20 63 68 61 72 20 74 6d | 70 5b 31 32 38 5d 3b 0d | char tm|p[128];.|
|00003850| 63 68 61 72 20 2a 73 2c | 20 2a 74 3b 0d 09 73 20 |char *s,| *t;..s |
|00003860| 3d 20 73 74 72 3b 0d 09 | 74 20 3d 20 74 6d 70 3b |= str;..|t = tmp;|
|00003870| 0d 09 2f 2a 20 63 6f 70 | 79 20 73 74 72 69 6e 67 |../* cop|y string|
|00003880| 20 74 6f 20 74 6d 70 5b | 5d 20 77 68 69 6c 65 20 | to tmp[|] while |
|00003890| 72 65 6d 6f 76 69 6e 67 | 20 27 2c 27 20 2a 2f 0d |removing| ',' */.|
|000038a0| 09 77 68 69 6c 65 28 28 | 2a 74 20 3d 20 2a 73 2b |.while((|*t = *s+|
|000038b0| 2b 29 20 21 3d 20 27 5c | 30 27 29 0d 09 20 20 20 |+) != '\|0').. |
|000038c0| 20 69 66 28 2a 74 20 21 | 3d 20 27 2c 27 29 20 74 | if(*t !|= ',') t|
|000038d0| 2b 2b 3b 0d 09 73 74 72 | 6e 63 70 79 28 73 74 72 |++;..str|ncpy(str|
|000038e0| 2c 20 74 6d 70 2c 20 38 | 30 29 3b 09 09 2f 2a 20 |, tmp, 8|0);../* |
|000038f0| 63 6f 70 79 20 62 61 63 | 6b 20 74 6f 20 6f 72 69 |copy bac|k to ori|
|00003900| 67 69 6e 61 6c 20 73 74 | 72 69 6e 67 20 2a 2f 0d |ginal st|ring */.|
|00003910| 23 69 66 6e 64 65 66 20 | 5f 5f 53 54 44 43 5f 5f |#ifndef |__STDC__|
|00003920| 0d 72 65 74 75 72 6e 28 | 30 29 3b 0d 23 65 6e 64 |.return(|0);.#end|
|00003930| 69 66 0d 7d 0d 0d 2f 2a | 20 43 68 65 63 6b 20 66 |if.}../*| Check f|
|00003940| 6f 72 20 69 6e 76 61 6c | 69 64 20 63 68 61 72 61 |or inval|id chara|
|00003950| 63 74 65 72 73 20 69 6e | 20 65 2d 6d 61 69 6c 20 |cters in| e-mail |
|00003960| 61 64 64 72 65 73 73 20 | 2a 2f 0d 2f 2a 20 4e 6f |address |*/./* No|
|00003970| 6e 2d 7a 65 72 6f 20 69 | 66 20 74 68 65 72 65 20 |n-zero i|f there |
|00003980| 69 73 20 61 20 63 68 61 | 72 61 63 74 65 72 20 74 |is a cha|racter t|
|00003990| 68 61 74 20 69 73 20 6e | 6f 74 20 73 75 70 70 6f |hat is n|ot suppo|
|000039a0| 73 65 64 20 74 6f 20 62 | 65 20 69 6e 20 61 64 64 |sed to b|e in add|
|000039b0| 72 65 73 73 20 2a 2f 0d | 23 69 66 64 65 66 20 5f |ress */.|#ifdef _|
|000039c0| 5f 53 54 44 43 5f 5f 0d | 69 6e 74 20 63 68 65 63 |_STDC__.|int chec|
|000039d0| 6b 5f 61 64 64 72 65 73 | 73 28 63 68 61 72 20 2a |k_addres|s(char *|
|000039e0| 73 74 72 29 0d 23 65 6c | 73 65 0d 69 6e 74 20 63 |str).#el|se.int c|
|000039f0| 68 65 63 6b 5f 61 64 64 | 72 65 73 73 28 73 74 72 |heck_add|ress(str|
|00003a00| 29 0d 63 68 61 72 20 2a | 73 74 72 3b 0d 23 65 6e |).char *|str;.#en|
|00003a10| 64 69 66 0d 7b 0d 63 68 | 61 72 20 2a 70 2c 20 63 |dif.{.ch|ar *p, c|
|00003a20| 3b 0d 69 6e 74 20 69 2c | 20 6e 63 2c 20 6f 6b 2c |;.int i,| nc, ok,|
|00003a30| 20 72 65 74 63 6f 64 65 | 20 3d 20 30 3b 0d 09 70 | retcode| = 0;..p|
|00003a40| 20 3d 20 73 74 72 3b 0d | 09 6e 63 20 3d 20 73 74 | = str;.|.nc = st|
|00003a50| 72 6c 65 6e 28 6f 6b 63 | 68 61 72 29 3b 0d 09 77 |rlen(okc|har);..w|
|00003a60| 68 69 6c 65 28 28 63 20 | 3d 20 2a 70 2b 2b 29 20 |hile((c |= *p++) |
|00003a70| 21 3d 20 27 5c 30 27 29 | 20 7b 0d 09 20 20 20 20 |!= '\0')| {.. |
|00003a80| 6f 6b 20 3d 20 30 3b 0d | 09 20 20 20 20 69 66 28 |ok = 0;.|. if(|
|00003a90| 63 20 3e 3d 20 27 61 27 | 20 26 26 20 63 20 3c 3d |c >= 'a'| && c <=|
|00003aa0| 20 27 7a 27 29 20 63 6f | 6e 74 69 6e 75 65 3b 0d | 'z') co|ntinue;.|
|00003ab0| 09 20 20 20 20 69 66 28 | 63 20 3e 3d 20 27 41 27 |. if(|c >= 'A'|
|00003ac0| 20 26 26 20 63 20 3c 3d | 20 27 5a 27 29 20 63 6f | && c <=| 'Z') co|
|00003ad0| 6e 74 69 6e 75 65 3b 0d | 09 20 20 20 20 69 66 28 |ntinue;.|. if(|
|00003ae0| 63 20 3e 3d 20 27 30 27 | 20 26 26 20 63 20 3c 3d |c >= '0'| && c <=|
|00003af0| 20 27 39 27 29 20 63 6f | 6e 74 69 6e 75 65 3b 0d | '9') co|ntinue;.|
|00003b00| 09 20 20 20 20 66 6f 72 | 28 69 3d 30 3b 20 69 3c |. for|(i=0; i<|
|00003b10| 6e 63 3b 20 69 2b 2b 29 | 20 7b 0d 09 09 69 66 28 |nc; i++)| {...if(|
|00003b20| 63 20 3d 3d 20 6f 6b 63 | 68 61 72 5b 69 5d 29 20 |c == okc|har[i]) |
|00003b30| 7b 0d 09 09 20 20 20 20 | 6f 6b 20 3d 31 3b 0d 09 |{... |ok =1;..|
|00003b40| 09 20 20 20 20 62 72 65 | 61 6b 3b 09 2f 2a 20 6f |. bre|ak;./* o|
|00003b50| 75 74 20 6f 66 20 66 6f | 72 28 29 20 6c 6f 6f 70 |ut of fo|r() loop|
|00003b60| 20 2a 2f 0d 09 09 7d 0d | 09 20 20 20 20 7d 0d 09 | */...}.|. }..|
|00003b70| 20 20 20 20 69 66 28 6f | 6b 29 20 63 6f 6e 74 69 | if(o|k) conti|
|00003b80| 6e 75 65 3b 09 2f 2a 20 | 77 68 69 6c 65 20 6c 6f |nue;./* |while lo|
|00003b90| 6f 70 20 2a 2f 0d 09 20 | 20 20 20 65 6c 73 65 20 |op */.. | else |
|00003ba0| 7b 0d 09 09 72 65 74 63 | 6f 64 65 20 3d 20 63 3b |{...retc|ode = c;|
|00003bb0| 0d 09 09 62 72 65 61 6b | 3b 09 09 2f 2a 20 6f 75 |...break|;../* ou|
|00003bc0| 74 20 6f 66 20 77 68 69 | 6c 65 20 6c 6f 6f 70 20 |t of whi|le loop |
|00003bd0| 2a 2f 0d 09 20 20 20 20 | 7d 0d 09 7d 0d 09 72 65 |*/.. |}..}..re|
|00003be0| 74 75 72 6e 28 72 65 74 | 63 6f 64 65 29 3b 0d 7d |turn(ret|code);.}|
|00003bf0| 0d 0d 0d 23 69 66 64 65 | 66 20 5f 5f 53 54 44 43 |...#ifde|f __STDC|
|00003c00| 5f 5f 0d 76 6f 69 64 20 | 6f 75 74 73 74 72 69 6e |__.void |outstrin|
|00003c10| 67 28 63 68 61 72 20 2a | 73 74 72 2c 20 46 49 4c |g(char *|str, FIL|
|00003c20| 45 20 2a 66 70 29 0d 23 | 65 6c 73 65 0d 6f 75 74 |E *fp).#|else.out|
|00003c30| 73 74 72 69 6e 67 28 73 | 74 72 2c 20 66 70 29 0d |string(s|tr, fp).|
|00003c40| 63 68 61 72 20 2a 73 74 | 72 3b 0d 46 49 4c 45 20 |char *st|r;.FILE |
|00003c50| 2a 66 70 3b 0d 23 65 6e | 64 69 66 0d 7b 0d 63 68 |*fp;.#en|dif.{.ch|
|00003c60| 61 72 20 2a 70 3b 0d 69 | 6e 74 20 63 3b 0d 09 70 |ar *p;.i|nt c;..p|
|00003c70| 20 3d 20 73 74 72 3b 0d | 09 77 68 69 6c 65 28 28 | = str;.|.while((|
|00003c80| 63 20 3d 20 2a 70 2b 2b | 29 20 21 3d 20 27 5c 30 |c = *p++|) != '\0|
|00003c90| 27 29 20 7b 0d 09 20 20 | 20 20 70 75 74 63 28 63 |') {.. | putc(c|
|00003ca0| 2c 20 66 70 29 3b 0d 09 | 20 20 20 20 63 6f 6c 75 |, fp);..| colu|
|00003cb0| 6d 6e 2b 2b 3b 0d 09 7d | 0d 23 69 66 6e 64 65 66 |mn++;..}|.#ifndef|
|00003cc0| 20 5f 5f 53 54 44 43 5f | 5f 0d 72 65 74 75 72 6e | __STDC_|_.return|
|00003cd0| 28 30 29 3b 0d 23 65 6e | 64 69 66 0d 7d 0d 0d 0d |(0);.#en|dif.}...|
|00003ce0| 23 69 66 64 65 66 20 5f | 5f 53 54 44 43 5f 5f 0d |#ifdef _|_STDC__.|
|00003cf0| 76 6f 69 64 20 6f 75 74 | 63 68 61 72 28 69 6e 74 |void out|char(int|
|00003d00| 20 63 2c 20 46 49 4c 45 | 20 2a 66 70 29 0d 23 65 | c, FILE| *fp).#e|
|00003d10| 6c 73 65 0d 6f 75 74 63 | 68 61 72 28 63 2c 20 66 |lse.outc|har(c, f|
|00003d20| 70 29 0d 69 6e 74 20 63 | 3b 0d 46 49 4c 45 20 2a |p).int c|;.FILE *|
|00003d30| 66 70 3b 0d 23 65 6e 64 | 69 66 0d 7b 0d 09 70 75 |fp;.#end|if.{..pu|
|00003d40| 74 63 28 63 2c 20 66 70 | 29 3b 0d 09 63 6f 6c 75 |tc(c, fp|);..colu|
|00003d50| 6d 6e 2b 2b 3b 09 2f 2a | 20 47 4c 4f 42 41 4c 20 |mn++;./*| GLOBAL |
|00003d60| 63 6f 6c 75 6d 6e 20 63 | 6f 75 6e 74 65 72 20 2a |column c|ounter *|
|00003d70| 2f 0d 23 69 66 6e 64 65 | 66 20 5f 5f 53 54 44 43 |/.#ifnde|f __STDC|
|00003d80| 5f 5f 0d 72 65 74 75 72 | 6e 28 30 29 3b 0d 23 65 |__.retur|n(0);.#e|
|00003d90| 6e 64 69 66 0d 7d 0d 0d | 0d 2f 2a 20 57 72 69 74 |ndif.}..|./* Writ|
|00003da0| 65 73 20 6f 75 74 20 65 | 61 63 68 20 45 2d 6d 61 |es out e|ach E-ma|
|00003db0| 69 6c 20 61 64 64 72 65 | 73 73 20 72 65 63 6f 72 |il addre|ss recor|
|00003dc0| 64 20 74 6f 20 6f 75 74 | 70 75 74 20 66 69 6c 65 |d to out|put file|
|00003dd0| 20 2a 2f 0d 23 69 66 64 | 65 66 20 5f 5f 53 54 44 | */.#ifd|ef __STD|
|00003de0| 43 5f 5f 0d 76 6f 69 64 | 20 77 72 69 74 65 5f 72 |C__.void| write_r|
|00003df0| 65 63 6f 72 64 28 46 49 | 4c 45 20 2a 66 70 29 0d |ecord(FI|LE *fp).|
|00003e00| 23 65 6c 73 65 0d 77 72 | 69 74 65 5f 72 65 63 6f |#else.wr|ite_reco|
|00003e10| 72 64 28 66 70 29 0d 46 | 49 4c 45 20 2a 66 70 3b |rd(fp).F|ILE *fp;|
|00003e20| 0d 69 6e 74 20 61 74 6f | 69 28 29 3b 09 2f 2f 20 |.int ato|i();.// |
|00003e30| 54 68 65 20 4d 65 74 72 | 6f 57 65 72 6b 73 20 43 |The Metr|oWerks C|
|00003e40| 6f 64 65 57 61 72 72 69 | 6f 72 20 43 20 63 6f 6d |odeWarri|or C com|
|00003e50| 70 69 6c 65 72 20 69 73 | 20 53 74 61 6e 64 61 72 |piler is| Standar|
|00003e60| 64 20 43 20 61 6e 64 20 | 64 6f 65 73 6e 27 74 20 |d C and |doesn't |
|00003e70| 6c 69 6b 65 20 74 68 69 | 73 2e 0d 23 65 6e 64 69 |like thi|s..#endi|
|00003e80| 66 0d 7b 0d 69 6e 74 20 | 63 68 2c 20 63 6d 64 2c |f.{.int |ch, cmd,|
|00003e90| 20 63 74 6f 2c 20 69 2c | 20 63 65 6e 64 3b 0d 63 | cto, i,| cend;.c|
|00003ea0| 68 61 72 20 2a 70 3b 0d | 63 68 61 72 20 2a 6e 3b |har *p;.|char *n;|
|00003eb0| 0d 73 74 61 74 69 63 20 | 63 68 61 72 20 63 6e 6e |.static |char cnn|
|00003ec0| 5b 31 36 5d 3b 0d 09 63 | 6f 6c 75 6d 6e 20 3d 20 |[16];..c|olumn = |
|00003ed0| 31 3b 09 2f 2a 20 47 4c | 4f 42 41 4c 2c 20 63 75 |1;./* GL|OBAL, cu|
|00003ee0| 72 72 65 6e 74 20 63 6f | 6c 75 6d 6e 20 70 6f 73 |rrent co|lumn pos|
|00003ef0| 69 74 69 6f 6e 20 2a 2f | 0d 09 70 20 3d 20 66 6d |ition */|..p = fm|
|00003f00| 74 3b 09 2f 2a 20 70 6f | 69 6e 74 65 72 20 74 6f |t;./* po|inter to|
|00003f10| 20 66 6f 72 6d 61 74 20 | 73 74 72 69 6e 67 20 2a | format |string *|
|00003f20| 2f 0d 09 77 68 69 6c 65 | 28 28 63 68 20 3d 20 2a |/..while|((ch = *|
|00003f30| 70 2b 2b 29 20 21 3d 20 | 27 5c 30 27 29 20 7b 0d |p++) != |'\0') {.|
|00003f40| 09 20 20 20 20 73 77 69 | 74 63 68 28 63 68 29 20 |. swi|tch(ch) |
|00003f50| 7b 0d 09 09 2f 2a 20 46 | 6f 72 6d 61 74 74 69 6e |{.../* F|ormattin|
|00003f60| 67 20 63 6f 64 65 20 66 | 6f 72 20 76 61 72 69 61 |g code f|or varia|
|00003f70| 62 6c 65 73 2e 20 43 61 | 73 65 2d 73 65 6e 73 69 |bles. Ca|se-sensi|
|00003f80| 74 69 76 65 0d 09 09 20 | 20 20 20 20 24 4c 20 2d |tive... | $L -|
|00003f90| 2d 20 6c 61 73 74 20 6e | 61 6d 65 0d 09 09 20 20 |- last n|ame... |
|00003fa0| 20 20 20 24 46 20 2d 2d | 20 66 69 72 73 74 20 6e | $F --| first n|
|00003fb0| 61 6d 65 20 26 20 69 6e | 69 74 69 61 6c 0d 09 09 |ame & in|itial...|
|00003fc0| 20 20 20 20 20 24 49 20 | 2d 2d 20 69 6e 73 74 69 | $I |-- insti|
|00003fd0| 74 75 74 69 6f 6e 61 6c | 20 61 66 66 69 6c 69 63 |tutional| affilic|
|00003fe0| 61 74 69 6f 6e 0d 09 09 | 20 20 20 20 20 24 41 20 |ation...| $A |
|00003ff0| 2d 2d 20 61 64 64 72 65 | 73 73 20 28 65 2d 6d 61 |-- addre|ss (e-ma|
|00004000| 69 6c 29 0d 09 09 20 20 | 20 20 20 24 54 20 2d 2d |il)... | $T --|
|00004010| 20 54 41 42 20 63 68 61 | 72 61 63 74 65 72 0d 09 | TAB cha|racter..|
|00004020| 09 20 20 20 20 20 24 4e | 20 2d 2d 20 4e 45 57 20 |. $N| -- NEW |
|00004030| 4c 49 4e 45 20 63 68 61 | 72 61 63 74 65 72 20 28 |LINE cha|racter (|
|00004040| 4c 46 20 66 6f 72 20 55 | 4e 49 58 2c 20 43 52 4c |LF for U|NIX, CRL|
|00004050| 46 20 66 6f 72 20 4d 53 | 44 4f 53 29 0d 09 09 20 |F for MS|DOS)... |
|00004060| 20 20 20 20 24 43 6e 6e | 20 2d 2d 20 61 64 76 61 | $Cnn| -- adva|
|00004070| 6e 63 65 20 74 6f 20 63 | 6f 6c 75 6d 6e 20 6e 6e |nce to c|olumn nn|
|00004080| 20 69 66 20 70 6f 73 73 | 69 62 6c 65 20 28 69 66 | if poss|ible (if|
|00004090| 20 6e 6f 74 20 70 61 73 | 74 20 69 74 20 61 6c 72 | not pas|t it alr|
|000040a0| 65 61 64 79 29 0d 09 09 | 20 2a 2f 0d 09 09 63 61 |eady)...| */...ca|
|000040b0| 73 65 20 27 24 27 3a 20 | 20 20 20 20 2f 2a 20 73 |se '$': | /* s|
|000040c0| 70 65 63 69 61 6c 20 66 | 6f 72 6d 61 74 74 69 6e |pecial f|ormattin|
|000040d0| 67 20 63 6f 64 65 20 2a | 2f 0d 09 09 09 69 66 28 |g code *|/....if(|
|000040e0| 28 63 6d 64 20 3d 20 2a | 70 29 20 3d 3d 20 27 5c |(cmd = *|p) == '\|
|000040f0| 30 27 29 20 62 72 65 61 | 6b 3b 0d 09 09 09 70 2b |0') brea|k;....p+|
|00004100| 2b 3b 09 09 2f 2a 20 61 | 64 76 61 6e 63 65 20 70 |+;../* a|dvance p|
|00004110| 74 72 20 6f 6e 6c 79 20 | 69 66 20 6e 6f 74 20 61 |tr only |if not a|
|00004120| 74 20 27 5c 30 27 20 61 | 6c 72 65 61 64 79 20 2a |t '\0' a|lready *|
|00004130| 2f 0d 09 09 09 73 77 69 | 74 63 68 28 63 6d 64 29 |/....swi|tch(cmd)|
|00004140| 20 7b 0d 09 09 09 20 20 | 20 20 63 61 73 65 20 27 | {.... | case '|
|00004150| 4c 27 3a 20 20 20 20 2f | 2a 20 6c 61 73 74 20 6e |L': /|* last n|
|00004160| 61 6d 65 20 2a 2f 0d 09 | 09 09 09 6f 75 74 73 74 |ame */..|...outst|
|00004170| 72 69 6e 67 28 6c 61 73 | 74 6e 61 6d 65 2c 20 66 |ring(las|tname, f|
|00004180| 70 29 3b 20 62 72 65 61 | 6b 3b 0d 09 09 09 20 20 |p); brea|k;.... |
|00004190| 20 20 63 61 73 65 20 27 | 46 27 3a 20 20 20 20 2f | case '|F': /|
|000041a0| 2a 20 66 69 72 73 74 20 | 6e 61 6d 65 20 26 20 69 |* first |name & i|
|000041b0| 6e 69 74 69 61 6c 20 2a | 2f 0d 09 09 09 09 6f 75 |nitial *|/.....ou|
|000041c0| 74 73 74 72 69 6e 67 28 | 66 69 72 73 74 69 6e 69 |tstring(|firstini|
|000041d0| 2c 20 66 70 29 3b 20 62 | 72 65 61 6b 3b 0d 09 09 |, fp); b|reak;...|
|000041e0| 09 20 20 20 20 63 61 73 | 65 20 27 49 27 3a 20 20 |. cas|e 'I': |
|000041f0| 20 20 2f 2a 20 69 6e 73 | 74 69 74 75 74 69 6f 6e | /* ins|titution|
|00004200| 61 6c 20 61 66 66 69 6c | 69 61 74 69 6f 6e 20 2a |al affil|iation *|
|00004210| 2f 0d 09 09 09 09 6f 75 | 74 73 74 72 69 6e 67 28 |/.....ou|tstring(|
|00004220| 61 66 66 69 6c 69 61 74 | 69 6f 6e 2c 20 66 70 29 |affiliat|ion, fp)|
|00004230| 3b 20 62 72 65 61 6b 3b | 0d 09 09 09 20 20 20 20 |; break;|.... |
|00004240| 63 61 73 65 20 27 41 27 | 3a 20 20 20 20 2f 2a 20 |case 'A'|: /* |
|00004250| 65 6d 61 69 6c 20 61 64 | 64 72 65 73 73 20 2a 2f |email ad|dress */|
|00004260| 0d 09 09 09 09 6f 75 74 | 73 74 72 69 6e 67 28 65 |.....out|string(e|
|00004270| 6d 61 64 64 72 65 73 73 | 2c 20 66 70 29 3b 20 62 |maddress|, fp); b|
|00004280| 72 65 61 6b 3b 0d 09 09 | 09 20 20 20 20 63 61 73 |reak;...|. cas|
|00004290| 65 20 27 54 27 3a 20 20 | 20 20 2f 2a 20 54 41 42 |e 'T': | /* TAB|
|000042a0| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 73 65 72 | charact|er inser|
|000042b0| 74 20 2a 2f 0d 09 09 09 | 09 6f 75 74 63 68 61 72 |t */....|.outchar|
|000042c0| 28 27 5c 74 27 2c 20 66 | 70 29 3b 20 62 72 65 61 |('\t', f|p); brea|
|000042d0| 6b 3b 0d 09 09 09 20 20 | 20 20 63 61 73 65 20 27 |k;.... | case '|
|000042e0| 4e 27 3a 20 20 20 20 2f | 2a 20 4e 45 57 20 4c 49 |N': /|* NEW LI|
|000042f0| 4e 45 20 63 68 61 72 61 | 63 74 65 72 20 69 6e 73 |NE chara|cter ins|
|00004300| 65 72 74 20 2a 2f 0d 09 | 09 09 09 6f 75 74 63 68 |ert */..|...outch|
|00004310| 61 72 28 27 5c 6e 27 2c | 20 66 70 29 3b 20 62 72 |ar('\n',| fp); br|
|00004320| 65 61 6b 3b 0d 09 09 09 | 20 20 20 20 63 61 73 65 |eak;....| case|
|00004330| 20 27 43 27 3a 20 20 20 | 20 2f 2a 20 63 6f 6c 75 | 'C': | /* colu|
|00004340| 6d 6e 20 61 64 76 61 6e | 63 65 20 2a 2f 0d 09 09 |mn advan|ce */...|
|00004350| 09 09 6e 20 3d 20 63 6e | 6e 3b 09 2f 2a 20 6e 75 |..n = cn|n;./* nu|
|00004360| 6d 62 65 72 20 62 75 66 | 66 65 72 20 66 6f 72 20 |mber buf|fer for |
|00004370| 74 61 72 67 65 74 20 63 | 6f 6c 75 6d 6e 20 70 6f |target c|olumn po|
|00004380| 73 20 2a 2f 0d 09 09 09 | 09 77 68 69 6c 65 28 28 |s */....|.while((|
|00004390| 2a 6e 20 3d 20 2a 70 29 | 20 3e 3d 27 30 27 20 26 |*n = *p)| >='0' &|
|000043a0| 26 20 2a 6e 20 3c 3d 27 | 39 27 29 20 7b 0d 09 09 |& *n <='|9') {...|
|000043b0| 09 09 20 20 20 20 6e 2b | 2b 3b 20 70 2b 2b 3b 0d |.. n+|+; p++;.|
|000043c0| 09 09 09 09 7d 0d 09 09 | 09 09 2a 6e 20 3d 20 27 |....}...|..*n = '|
|000043d0| 5c 30 27 3b 09 09 2f 2a | 20 73 74 72 69 6e 67 20 |\0';../*| string |
|000043e0| 74 65 72 6d 69 6e 61 74 | 6f 72 20 2a 2f 0d 09 09 |terminat|or */...|
|000043f0| 09 09 63 74 6f 20 3d 20 | 61 74 6f 69 28 63 6e 6e |..cto = |atoi(cnn|
|00004400| 29 3b 09 2f 2a 20 6d 6f | 76 65 20 74 6f 20 63 74 |);./* mo|ve to ct|
|00004410| 6f 20 2a 2f 0d 09 09 09 | 09 69 66 28 63 74 6f 20 |o */....|.if(cto |
|00004420| 3c 20 31 20 29 20 63 74 | 6f 20 3d 20 31 3b 0d 09 |< 1 ) ct|o = 1;..|
|00004430| 09 09 09 69 66 28 28 63 | 65 6e 64 20 3d 20 63 74 |...if((c|end = ct|
|00004440| 6f 2d 63 6f 6c 75 6d 6e | 29 20 3e 20 30 29 20 7b |o-column|) > 0) {|
|00004450| 0d 09 09 09 09 20 20 20 | 20 66 6f 72 28 69 3d 30 |..... | for(i=0|
|00004460| 3b 20 69 3c 63 65 6e 64 | 3b 20 69 2b 2b 29 0d 09 |; i<cend|; i++)..|
|00004470| 09 09 09 09 6f 75 74 63 | 68 61 72 28 27 20 27 2c |....outc|har(' ',|
|00004480| 20 66 70 29 3b 0d 09 09 | 09 09 7d 0d 09 09 09 09 | fp);...|..}.....|
|00004490| 65 6c 73 65 20 20 20 20 | 6f 75 74 63 68 61 72 28 |else |outchar(|
|000044a0| 27 20 27 2c 20 66 70 29 | 3b 0d 09 09 09 09 62 72 |' ', fp)|;.....br|
|000044b0| 65 61 6b 3b 0d 09 09 09 | 20 20 20 20 64 65 66 61 |eak;....| defa|
|000044c0| 75 6c 74 3a 20 20 2f 2a | 20 54 68 69 73 20 73 68 |ult: /*| This sh|
|000044d0| 6f 75 6c 64 6e 27 74 20 | 68 61 70 70 65 6e 20 2a |ouldn't |happen *|
|000044e0| 2f 0d 09 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |/.....fp|rintf(st|
|000044f0| 64 65 72 72 2c 20 22 5c | 6e 49 6c 6c 65 67 61 6c |derr, "\|nIllegal|
|00004500| 20 76 61 72 69 61 62 6c | 65 20 5c 22 24 25 63 5c | variabl|e \"$%c\|
|00004510| 22 20 69 6e 20 5c 22 25 | 73 5c 22 2e 5c 6e 22 2c |" in \"%|s\".\n",|
|00004520| 0d 09 09 09 09 09 09 63 | 6d 64 2c 20 66 6d 74 66 |.......c|md, fmtf|
|00004530| 69 6c 65 29 3b 0d 23 69 | 66 64 65 66 20 4d 41 43 |ile);.#i|fdef MAC|
|00004540| 0d 09 09 09 09 20 20 20 | 20 70 72 69 6e 74 66 28 |..... | printf(|
|00004550| 22 43 6c 69 63 6b 20 74 | 68 69 73 20 77 69 6e 64 |"Click t|his wind|
|00004560| 6f 77 20 74 6f 20 65 78 | 69 74 3a 5c 6e 22 29 3b |ow to ex|it:\n");|
|00004570| 0d 09 09 09 09 20 20 20 | 20 46 6c 75 73 68 45 76 |..... | FlushEv|
|00004580| 65 6e 74 73 28 65 76 65 | 72 79 45 76 65 6e 74 2c |ents(eve|ryEvent,|
|00004590| 30 29 3b 0d 09 09 09 09 | 20 20 20 20 77 68 69 6c |0);.....| whil|
|000045a0| 65 28 21 47 65 74 4e 65 | 78 74 45 76 65 6e 74 28 |e(!GetNe|xtEvent(|
|000045b0| 65 76 65 72 79 45 76 65 | 6e 74 2c 26 65 76 65 6e |everyEve|nt,&even|
|000045c0| 74 29 29 20 3b 0d 23 65 | 6e 64 69 66 0d 09 09 09 |t)) ;.#e|ndif....|
|000045d0| 09 65 78 69 74 28 35 29 | 3b 0d 09 09 09 7d 20 2f |.exit(5)|;....} /|
|000045e0| 2a 20 65 6e 64 20 73 77 | 69 74 63 68 28 63 6d 64 |* end sw|itch(cmd|
|000045f0| 29 20 2a 2f 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |) */....|break;..|
|00004600| 09 09 64 65 66 61 75 6c | 74 3a 20 2f 2a 20 72 65 |..defaul|t: /* re|
|00004610| 67 75 6c 61 72 20 61 73 | 63 69 69 20 2a 2f 0d 09 |gular as|cii */..|
|00004620| 09 09 6f 75 74 63 68 61 | 72 28 63 68 2c 20 66 70 |..outcha|r(ch, fp|
|00004630| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 20 20 |);....br|eak;.. |
|00004640| 20 20 7d 20 2f 2a 20 65 | 6e 64 20 73 77 69 74 63 | } /* e|nd switc|
|00004650| 68 28 63 68 29 20 2a 2f | 0d 09 7d 20 2f 2a 20 65 |h(ch) */|..} /* e|
|00004660| 6e 64 20 77 68 69 6c 65 | 28 28 63 68 20 3d 20 2a |nd while|((ch = *|
|00004670| 70 29 20 2e 2e 2e 20 2a | 2f 0d 0d 2f 2a 0d 09 66 |p) ... *|/../*..f|
|00004680| 70 72 69 6e 74 66 28 66 | 70 2c 20 22 25 73 20 25 |printf(f|p, "%s %|
|00004690| 73 20 28 25 73 29 20 3c | 25 73 3e 5c 6e 22 2c 0d |s (%s) <|%s>\n",.|
|000046a0| 09 09 09 6c 61 73 74 6e | 61 6d 65 2c 20 66 69 72 |...lastn|ame, fir|
|000046b0| 73 74 69 6e 69 2c 20 61 | 66 66 69 6c 69 61 74 69 |stini, a|ffiliati|
|000046c0| 6f 6e 2c 20 65 6d 61 64 | 64 72 65 73 73 29 3b 0d |on, emad|dress);.|
|000046d0| 2a 2f 0d 23 69 66 6e 64 | 65 66 20 5f 5f 53 54 44 |*/.#ifnd|ef __STD|
|000046e0| 43 5f 5f 0d 72 65 74 75 | 72 6e 28 30 29 3b 0d 23 |C__.retu|rn(0);.#|
|000046f0| 65 6e 64 69 66 0d 7d 0d | 0d 0d 23 69 66 64 65 66 |endif.}.|..#ifdef|
|00004700| 20 5f 5f 53 54 44 43 5f | 5f 0d 76 6f 69 64 20 6d | __STDC_|_.void m|
|00004710| 61 69 6e 28 69 6e 74 20 | 61 72 67 63 2c 20 63 68 |ain(int |argc, ch|
|00004720| 61 72 20 2a 61 72 67 76 | 5b 5d 29 0d 23 65 6c 73 |ar *argv|[]).#els|
|00004730| 65 0d 6d 61 69 6e 28 61 | 72 67 63 2c 20 61 72 67 |e.main(a|rgc, arg|
|00004740| 76 29 0d 69 6e 74 20 61 | 72 67 63 3b 0d 63 68 61 |v).int a|rgc;.cha|
|00004750| 72 20 2a 61 72 67 76 5b | 5d 3b 0d 23 65 6e 64 69 |r *argv[|];.#endi|
|00004760| 66 0d 7b 0d 46 49 4c 45 | 20 2a 66 70 69 2c 20 2a |f.{.FILE| *fpi, *|
|00004770| 66 70 66 2c 20 2a 66 70 | 6f 3b 0d 63 68 61 72 20 |fpf, *fp|o;.char |
|00004780| 2a 62 70 74 72 2c 20 2a | 65 70 74 72 3b 0d 69 6e |*bptr, *|eptr;.in|
|00004790| 74 20 63 3b 0d 69 6e 74 | 20 63 68 61 72 63 6e 74 |t c;.int| charcnt|
|000047a0| 3b 0d 69 6e 74 20 71 75 | 6f 74 65 3b 09 2f 2a 20 |;.int qu|ote;./* |
|000047b0| 70 72 6f 6c 6f 67 2c 20 | 65 70 69 6c 6f 67 20 71 |prolog, |epilog q|
|000047c0| 75 6f 74 65 20 63 68 61 | 72 20 2a 2f 0d 23 69 66 |uote cha|r */.#if|
|000047d0| 64 65 66 20 4d 41 43 0d | 20 20 20 20 50 6f 69 6e |def MAC.| Poin|
|000047e0| 74 20 77 68 65 72 65 3d | 7b 32 30 30 2c 31 30 30 |t where=|{200,100|
|000047f0| 7d 3b 0d 20 20 20 20 53 | 46 52 65 70 6c 79 09 72 |};. S|FReply.r|
|00004800| 65 70 6c 79 3b 0d 20 20 | 20 20 63 68 61 72 20 73 |eply;. | char s|
|00004810| 74 72 69 6e 67 5b 32 35 | 36 5d 3b 0d 20 20 20 20 |tring[25|6];. |
|00004820| 2f 2a 20 54 68 65 20 63 | 6f 6e 76 65 6e 74 69 6f |/* The c|onventio|
|00004830| 6e 20 6f 66 20 73 74 6f | 72 69 6e 67 20 66 6f 75 |n of sto|ring fou|
|00004840| 72 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |r charac|ters in |
|00004850| 61 20 6c 6f 6e 67 2c 20 | 61 6e 64 20 6f 66 20 73 |a long, |and of s|
|00004860| 70 65 63 69 66 79 69 6e | 67 0d 20 20 20 20 74 68 |pecifyin|g. th|
|00004870| 65 6d 20 77 69 74 68 20 | 73 69 6e 67 6c 65 20 71 |em with |single q|
|00004880| 75 6f 74 65 73 20 69 73 | 20 6e 6f 74 20 70 61 72 |uotes is| not par|
|00004890| 74 20 6f 66 20 73 74 61 | 6e 64 61 72 64 20 43 2c |t of sta|ndard C,|
|000048a0| 20 62 75 74 20 69 73 20 | 61 20 73 74 61 6e 64 61 | but is |a standa|
|000048b0| 72 64 0d 20 20 20 20 4d | 61 63 69 6e 74 6f 73 68 |rd. M|acintosh|
|000048c0| 20 65 78 74 65 6e 73 69 | 6f 6e 20 74 6f 20 43 2e | extensi|on to C.|
|000048d0| 20 2a 2f 0d 20 20 20 20 | 4f 53 54 79 70 65 20 74 | */. |OSType t|
|000048e0| 79 70 65 3d 27 54 45 58 | 54 27 2c 63 72 65 61 74 |ype='TEX|T',creat|
|000048f0| 6f 72 3d 27 4d 41 43 41 | 27 3b 09 2f 2a 20 64 65 |or='MACA|';./* de|
|00004900| 66 61 75 6c 74 20 69 73 | 20 4d 61 63 57 72 69 74 |fault is| MacWrit|
|00004910| 65 20 74 65 78 74 20 66 | 69 6c 65 20 2a 2f 0d 20 |e text f|ile */. |
|00004920| 20 20 20 73 68 6f 72 74 | 20 6f 75 74 70 75 74 56 | short| outputV|
|00004930| 52 65 66 4e 75 6d 2c 76 | 52 65 66 4e 75 6d 3b 0d |RefNum,v|RefNum;.|
|00004940| 23 65 6e 64 69 66 0d 09 | 09 0d 23 69 66 64 65 66 |#endif..|..#ifdef|
|00004950| 20 4d 41 43 0d 09 20 20 | 20 20 49 6e 69 74 47 72 | MAC.. | InitGr|
|00004960| 61 66 28 26 71 64 2e 74 | 68 65 50 6f 72 74 29 3b |af(&qd.t|hePort);|
|00004970| 0d 09 20 20 20 20 49 6e | 69 74 46 6f 6e 74 73 28 |.. In|itFonts(|
|00004980| 29 3b 0d 09 20 20 20 20 | 49 6e 69 74 57 69 6e 64 |);.. |InitWind|
|00004990| 6f 77 73 28 29 3b 0d 09 | 20 20 20 20 49 6e 69 74 |ows();..| Init|
|000049a0| 43 75 72 73 6f 72 28 29 | 3b 0d 09 20 20 20 20 61 |Cursor()|;.. a|
|000049b0| 72 67 63 3d 33 3b 0d 23 | 65 6e 64 69 66 0d 09 69 |rgc=3;.#|endif..i|
|000049c0| 66 28 61 72 67 63 20 21 | 3d 20 33 20 26 26 20 61 |f(argc !|= 3 && a|
|000049d0| 72 67 63 20 21 3d 20 34 | 29 20 75 73 61 67 65 28 |rgc != 4|) usage(|
|000049e0| 29 3b 0d 09 73 74 75 70 | 69 64 28 29 3b 0d 0d 09 |);..stup|id();...|
|000049f0| 2f 2a 20 49 6e 70 75 74 | 20 66 69 6c 65 20 2d 2d |/* Input| file --|
|00004a00| 20 4f 72 69 67 69 6e 61 | 6c 20 43 56 4e 65 74 20 | Origina|l CVNet |
|00004a10| 6d 65 6d 62 65 72 20 6c | 69 73 74 20 66 69 6c 65 |member l|ist file|
|00004a20| 20 2a 2f 0d 23 69 66 64 | 65 66 20 4d 41 43 0d 09 | */.#ifd|ef MAC..|
|00004a30| 20 20 20 20 70 72 69 6e | 74 66 28 22 57 68 65 72 | prin|tf("Wher|
|00004a40| 65 20 69 73 20 74 68 65 | 20 43 56 4e 65 74 20 6d |e is the| CVNet m|
|00004a50| 61 73 74 65 72 20 6c 69 | 73 74 3f 5c 6e 22 29 3b |aster li|st?\n");|
|00004a60| 0d 09 20 20 20 20 70 72 | 69 6e 74 66 28 22 43 6c |.. pr|intf("Cl|
|00004a70| 69 63 6b 20 74 68 69 73 | 20 77 69 6e 64 6f 77 20 |ick this| window |
|00004a80| 74 6f 20 63 6f 6e 74 69 | 6e 75 65 3a 5c 6e 22 29 |to conti|nue:\n")|
|00004a90| 3b 0d 09 20 20 20 20 46 | 6c 75 73 68 45 76 65 6e |;.. F|lushEven|
|00004aa0| 74 73 28 65 76 65 72 79 | 45 76 65 6e 74 2c 30 29 |ts(every|Event,0)|
|00004ab0| 3b 0d 09 20 20 20 20 77 | 68 69 6c 65 28 21 47 65 |;.. w|hile(!Ge|
|00004ac0| 74 4e 65 78 74 45 76 65 | 6e 74 28 65 76 65 72 79 |tNextEve|nt(every|
|00004ad0| 45 76 65 6e 74 2c 26 65 | 76 65 6e 74 29 29 20 3b |Event,&e|vent)) ;|
|00004ae0| 0d 09 20 20 20 20 53 46 | 47 65 74 46 69 6c 65 28 |.. SF|GetFile(|
|00004af0| 77 68 65 72 65 2c 4e 55 | 4c 4c 2c 4e 55 4c 4c 2c |where,NU|LL,NULL,|
|00004b00| 31 2c 26 74 79 70 65 2c | 4e 55 4c 4c 2c 26 72 65 |1,&type,|NULL,&re|
|00004b10| 70 6c 79 29 3b 0d 09 20 | 20 20 20 69 66 28 21 72 |ply);.. | if(!r|
|00004b20| 65 70 6c 79 2e 67 6f 6f | 64 29 75 73 61 67 65 28 |eply.goo|d)usage(|
|00004b30| 29 3b 0d 09 20 20 20 20 | 70 32 63 73 74 72 28 72 |);.. |p2cstr(r|
|00004b40| 65 70 6c 79 2e 66 4e 61 | 6d 65 29 3b 0d 09 20 20 |eply.fNa|me);.. |
|00004b50| 20 20 61 72 67 76 5b 31 | 5d 3d 6d 61 6c 6c 6f 63 | argv[1|]=malloc|
|00004b60| 28 31 2b 73 74 72 6c 65 | 6e 28 28 63 68 61 72 20 |(1+strle|n((char |
|00004b70| 2a 29 72 65 70 6c 79 2e | 66 4e 61 6d 65 29 29 3b |*)reply.|fName));|
|00004b80| 0d 09 20 20 20 20 73 74 | 72 63 70 79 28 61 72 67 |.. st|rcpy(arg|
|00004b90| 76 5b 31 5d 2c 28 63 68 | 61 72 20 2a 29 72 65 70 |v[1],(ch|ar *)rep|
|00004ba0| 6c 79 2e 66 4e 61 6d 65 | 29 3b 0d 09 20 20 20 20 |ly.fName|);.. |
|00004bb0| 63 32 70 73 74 72 28 28 | 63 68 61 72 20 2a 29 72 |c2pstr((|char *)r|
|00004bc0| 65 70 6c 79 2e 66 4e 61 | 6d 65 29 3b 0d 09 09 53 |eply.fNa|me);...S|
|00004bd0| 65 74 56 6f 6c 28 4e 55 | 4c 4c 2c 72 65 70 6c 79 |etVol(NU|LL,reply|
|00004be0| 2e 76 52 65 66 4e 75 6d | 29 3b 09 2f 2a 20 6c 6f |.vRefNum|);./* lo|
|00004bf0| 6f 6b 20 69 6e 20 74 68 | 61 74 20 66 6f 6c 64 65 |ok in th|at folde|
|00004c00| 72 20 2a 2f 0d 23 65 6e | 64 69 66 0d 09 69 66 28 |r */.#en|dif..if(|
|00004c10| 28 66 70 69 20 3d 20 66 | 6f 70 65 6e 28 61 72 67 |(fpi = f|open(arg|
|00004c20| 76 5b 31 5d 2c 20 22 72 | 22 29 29 20 3d 3d 20 4e |v[1], "r|")) == N|
|00004c30| 55 4c 4c 29 20 7b 0d 09 | 20 20 20 20 66 70 72 69 |ULL) {..| fpri|
|00004c40| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 43 61 6e |ntf(stde|rr, "Can|
|00004c50| 27 74 20 6f 70 65 6e 20 | 66 69 6c 65 20 5c 22 25 |'t open |file \"%|
|00004c60| 73 5c 22 2e 5c 6e 22 2c | 20 61 72 67 76 5b 31 5d |s\".\n",| argv[1]|
|00004c70| 29 3b 0d 23 69 66 64 65 | 66 20 4d 41 43 0d 09 09 |);.#ifde|f MAC...|
|00004c80| 70 72 69 6e 74 66 28 22 | 43 6c 69 63 6b 20 74 68 |printf("|Click th|
|00004c90| 69 73 20 77 69 6e 64 6f | 77 20 74 6f 20 65 78 69 |is windo|w to exi|
|00004ca0| 74 3a 5c 6e 22 29 3b 0d | 09 09 46 6c 75 73 68 45 |t:\n");.|..FlushE|
|00004cb0| 76 65 6e 74 73 28 65 76 | 65 72 79 45 76 65 6e 74 |vents(ev|eryEvent|
|00004cc0| 2c 30 29 3b 0d 09 09 77 | 68 69 6c 65 28 21 47 65 |,0);...w|hile(!Ge|
|00004cd0| 74 4e 65 78 74 45 76 65 | 6e 74 28 65 76 65 72 79 |tNextEve|nt(every|
|00004ce0| 45 76 65 6e 74 2c 26 65 | 76 65 6e 74 29 29 20 3b |Event,&e|vent)) ;|
|00004cf0| 0d 23 65 6e 64 69 66 0d | 09 20 20 20 20 65 78 69 |.#endif.|. exi|
|00004d00| 74 28 32 29 3b 0d 09 7d | 0d 0d 09 2f 2a 20 4f 75 |t(2);..}|.../* Ou|
|00004d10| 74 70 75 74 20 66 69 6c | 65 2e 20 43 68 65 63 6b |tput fil|e. Check|
|00004d20| 20 74 68 61 74 20 77 65 | 20 61 72 65 20 6e 6f 74 | that we| are not|
|00004d30| 20 77 69 70 69 6e 67 20 | 6f 75 74 20 61 20 2a 2e | wiping |out a *.|
|00004d40| 66 6d 74 20 66 69 6c 65 | 2e 20 2a 2f 0d 23 69 66 |fmt file|. */.#if|
|00004d50| 64 65 66 20 4d 41 43 0d | 09 20 20 20 20 73 70 72 |def MAC.|. spr|
|00004d60| 69 6e 74 66 28 73 74 72 | 69 6e 67 2c 22 25 73 2e |intf(str|ing,"%s.|
|00004d70| 6f 75 74 22 2c 61 72 67 | 76 5b 31 5d 29 3b 0d 09 |out",arg|v[1]);..|
|00004d80| 20 20 20 20 53 46 50 75 | 74 46 69 6c 65 28 77 68 | SFPu|tFile(wh|
|00004d90| 65 72 65 2c 22 5c 70 53 | 61 76 65 20 6e 65 77 20 |ere,"\pS|ave new |
|00004da0| 43 56 4e 65 74 20 6c 69 | 73 74 20 61 73 3a 22 2c |CVNet li|st as:",|
|00004db0| 63 32 70 73 74 72 28 73 | 74 72 69 6e 67 29 2c 4e |c2pstr(s|tring),N|
|00004dc0| 55 4c 4c 2c 26 72 65 70 | 6c 79 29 3b 0d 09 20 20 |ULL,&rep|ly);.. |
|00004dd0| 20 20 69 66 28 21 72 65 | 70 6c 79 2e 67 6f 6f 64 | if(!re|ply.good|
|00004de0| 29 75 73 61 67 65 28 29 | 3b 0d 09 20 20 20 20 70 |)usage()|;.. p|
|00004df0| 32 63 73 74 72 28 72 65 | 70 6c 79 2e 66 4e 61 6d |2cstr(re|ply.fNam|
|00004e00| 65 29 3b 0d 09 20 20 20 | 20 61 72 67 76 5b 32 5d |e);.. | argv[2]|
|00004e10| 3d 6d 61 6c 6c 6f 63 28 | 31 2b 73 74 72 6c 65 6e |=malloc(|1+strlen|
|00004e20| 28 28 63 68 61 72 20 2a | 29 72 65 70 6c 79 2e 66 |((char *|)reply.f|
|00004e30| 4e 61 6d 65 29 29 3b 0d | 09 20 20 20 20 73 74 72 |Name));.|. str|
|00004e40| 63 70 79 28 61 72 67 76 | 5b 32 5d 2c 28 63 68 61 |cpy(argv|[2],(cha|
|00004e50| 72 20 2a 29 72 65 70 6c | 79 2e 66 4e 61 6d 65 29 |r *)repl|y.fName)|
|00004e60| 3b 0d 09 20 20 20 20 63 | 32 70 73 74 72 28 28 63 |;.. c|2pstr((c|
|00004e70| 68 61 72 20 2a 29 72 65 | 70 6c 79 2e 66 4e 61 6d |har *)re|ply.fNam|
|00004e80| 65 29 3b 0d 09 09 53 65 | 74 56 6f 6c 28 4e 55 4c |e);...Se|tVol(NUL|
|00004e90| 4c 2c 72 65 70 6c 79 2e | 76 52 65 66 4e 75 6d 29 |L,reply.|vRefNum)|
|00004ea0| 3b 09 2f 2a 20 6c 6f 6f | 6b 20 69 6e 20 74 68 61 |;./* loo|k in tha|
|00004eb0| 74 20 66 6f 6c 64 65 72 | 20 2a 2f 0d 09 20 20 20 |t folder| */.. |
|00004ec0| 20 6f 75 74 70 75 74 56 | 52 65 66 4e 75 6d 3d 72 | outputV|RefNum=r|
|00004ed0| 65 70 6c 79 2e 76 52 65 | 66 4e 75 6d 3b 0d 23 65 |eply.vRe|fNum;.#e|
|00004ee0| 6e 64 69 66 0d 09 62 70 | 74 72 20 3d 20 65 70 74 |ndif..bp|tr = ept|
|00004ef0| 72 20 3d 20 61 72 67 76 | 5b 32 5d 3b 0d 09 77 68 |r = argv|[2];..wh|
|00004f00| 69 6c 65 28 2a 65 70 74 | 72 20 21 3d 20 27 5c 30 |ile(*ept|r != '\0|
|00004f10| 27 29 20 65 70 74 72 2b | 2b 3b 0d 09 77 68 69 6c |') eptr+|+;..whil|
|00004f20| 65 28 2a 62 70 74 72 20 | 21 3d 20 27 2e 27 20 26 |e(*bptr |!= '.' &|
|00004f30| 26 20 2a 62 70 74 72 20 | 21 3d 20 27 5c 30 27 29 |& *bptr |!= '\0')|
|00004f40| 20 62 70 74 72 2b 2b 3b | 0d 09 69 66 28 62 70 74 | bptr++;|..if(bpt|
|00004f50| 72 20 21 3d 20 65 70 74 | 72 29 20 7b 0d 09 20 20 |r != ept|r) {.. |
|00004f60| 20 20 69 66 28 73 74 72 | 6e 63 6d 70 28 62 70 74 | if(str|ncmp(bpt|
|00004f70| 72 2c 20 22 2e 66 6d 74 | 22 2c 20 34 29 20 3d 3d |r, ".fmt|", 4) ==|
|00004f80| 20 30 29 20 7b 0d 09 09 | 66 70 72 69 6e 74 66 28 | 0) {...|fprintf(|
|00004f90| 73 74 64 65 72 72 2c 20 | 22 59 6f 75 20 73 68 6f |stderr, |"You sho|
|00004fa0| 75 6c 64 6e 27 74 20 62 | 65 20 77 72 69 74 69 6e |uldn't b|e writin|
|00004fb0| 67 20 74 6f 20 5c 22 25 | 73 5c 22 2e 5c 6e 22 2c |g to \"%|s\".\n",|
|00004fc0| 20 61 72 67 76 5b 32 5d | 29 3b 0d 23 69 66 64 65 | argv[2]|);.#ifde|
|00004fd0| 66 20 4d 41 43 0d 09 09 | 20 20 20 20 70 72 69 6e |f MAC...| prin|
|00004fe0| 74 66 28 22 43 6c 69 63 | 6b 20 74 68 69 73 20 77 |tf("Clic|k this w|
|00004ff0| 69 6e 64 6f 77 20 74 6f | 20 65 78 69 74 3a 5c 6e |indow to| exit:\n|
|00005000| 22 29 3b 0d 09 09 20 20 | 20 20 46 6c 75 73 68 45 |");... | FlushE|
|00005010| 76 65 6e 74 73 28 65 76 | 65 72 79 45 76 65 6e 74 |vents(ev|eryEvent|
|00005020| 2c 30 29 3b 0d 09 09 20 | 20 20 20 77 68 69 6c 65 |,0);... | while|
|00005030| 28 21 47 65 74 4e 65 78 | 74 45 76 65 6e 74 28 65 |(!GetNex|tEvent(e|
|00005040| 76 65 72 79 45 76 65 6e | 74 2c 26 65 76 65 6e 74 |veryEven|t,&event|
|00005050| 29 29 20 3b 0d 23 65 6e | 64 69 66 0d 09 09 65 78 |)) ;.#en|dif...ex|
|00005060| 69 74 28 31 29 3b 0d 09 | 20 20 20 20 7d 0d 09 7d |it(1);..| }..}|
|00005070| 0d 09 69 66 28 28 66 70 | 6f 20 3d 20 66 6f 70 65 |..if((fp|o = fope|
|00005080| 6e 28 61 72 67 76 5b 32 | 5d 2c 20 22 77 22 29 29 |n(argv[2|], "w"))|
|00005090| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0d 09 20 20 20 | == NULL|) {.. |
|000050a0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|000050b0| 20 22 43 61 6e 27 74 20 | 6f 70 65 6e 20 6f 75 74 | "Can't |open out|
|000050c0| 70 75 74 20 66 69 6c 65 | 20 5c 22 25 73 5c 22 2e |put file| \"%s\".|
|000050d0| 5c 6e 22 2c 20 61 72 67 | 76 5b 32 5d 29 3b 0d 23 |\n", arg|v[2]);.#|
|000050e0| 69 66 64 65 66 20 4d 41 | 43 0d 09 09 70 72 69 6e |ifdef MA|C...prin|
|000050f0| 74 66 28 22 43 6c 69 63 | 6b 20 74 68 69 73 20 77 |tf("Clic|k this w|
|00005100| 69 6e 64 6f 77 20 74 6f | 20 65 78 69 74 3a 5c 6e |indow to| exit:\n|
|00005110| 22 29 3b 0d 09 09 46 6c | 75 73 68 45 76 65 6e 74 |");...Fl|ushEvent|
|00005120| 73 28 65 76 65 72 79 45 | 76 65 6e 74 2c 30 29 3b |s(everyE|vent,0);|
|00005130| 0d 09 09 77 68 69 6c 65 | 28 21 47 65 74 4e 65 78 |...while|(!GetNex|
|00005140| 74 45 76 65 6e 74 28 65 | 76 65 72 79 45 76 65 6e |tEvent(e|veryEven|
|00005150| 74 2c 26 65 76 65 6e 74 | 29 29 20 3b 0d 23 65 6e |t,&event|)) ;.#en|
|00005160| 64 69 66 0d 09 20 20 20 | 20 65 78 69 74 28 33 29 |dif.. | exit(3)|
|00005170| 3b 0d 09 7d 0d 0d 09 2f | 2a 20 46 6f 72 6d 61 74 |;..}.../|* Format|
|00005180| 20 66 69 6c 65 2e 0d 09 | 20 2a 20 52 65 61 64 20 | file...| * Read |
|00005190| 74 68 65 20 66 69 72 73 | 74 20 66 65 77 20 6c 69 |the firs|t few li|
|000051a0| 6e 65 73 2e 0d 09 20 2a | 20 54 68 65 20 72 65 73 |nes... *| The res|
|000051b0| 74 20 6f 66 20 74 68 65 | 20 66 69 6c 65 20 77 69 |t of the| file wi|
|000051c0| 6c 6c 20 62 65 20 69 67 | 6e 6f 72 65 64 20 61 6e |ll be ig|nored an|
|000051d0| 64 20 6d 61 79 20 62 65 | 20 75 73 65 64 20 74 6f |d may be| used to|
|000051e0| 20 64 65 73 63 72 69 62 | 65 0d 09 20 2a 20 74 68 | describ|e.. * th|
|000051f0| 65 20 66 6f 72 6d 61 74 | 20 73 70 65 63 69 66 69 |e format| specifi|
|00005200| 65 64 20 69 6e 20 74 68 | 65 20 66 69 6c 65 2e 0d |ed in th|e file..|
|00005210| 09 20 2a 2f 0d 09 69 66 | 28 61 72 67 63 20 3d 3d |. */..if|(argc ==|
|00005220| 20 34 29 20 66 6d 74 66 | 69 6c 65 20 3d 20 61 72 | 4) fmtf|ile = ar|
|00005230| 67 76 5b 33 5d 3b 09 2f | 2a 20 6f 70 74 69 6f 6e |gv[3];./|* option|
|00005240| 61 6c 20 74 68 69 72 64 | 20 61 72 67 75 6d 65 6e |al third| argumen|
|00005250| 74 20 67 69 76 65 6e 20 | 66 6f 72 20 66 6d 74 20 |t given |for fmt |
|00005260| 2a 2f 0d 09 65 6c 73 65 | 20 20 20 20 20 20 20 20 |*/..else| |
|00005270| 20 20 66 6d 74 66 69 6c | 65 20 3d 20 64 65 66 66 | fmtfil|e = deff|
|00005280| 69 6c 65 3b 09 2f 2a 20 | 64 65 66 61 75 6c 74 20 |ile;./* |default |
|00005290| 2a 2f 0d 09 66 70 66 20 | 3d 20 66 6f 70 65 6e 28 |*/..fpf |= fopen(|
|000052a0| 66 6d 74 66 69 6c 65 2c | 20 22 72 22 29 3b 0d 23 |fmtfile,| "r");.#|
|000052b0| 69 66 64 65 66 20 4d 41 | 43 0d 09 20 20 20 20 69 |ifdef MA|C.. i|
|000052c0| 66 28 66 70 66 3d 3d 4e | 55 4c 4c 29 7b 0d 09 09 |f(fpf==N|ULL){...|
|000052d0| 73 70 72 69 6e 74 66 28 | 73 74 72 69 6e 67 2c 22 |sprintf(|string,"|
|000052e0| 43 6f 75 6c 64 6e 27 74 | 20 66 69 6e 64 20 5c 22 |Couldn't| find \"|
|000052f0| 25 73 5c 22 2e 20 50 6c | 65 61 73 65 20 63 68 6f |%s\". Pl|ease cho|
|00005300| 6f 73 65 20 61 20 66 6f | 72 6d 61 74 20 66 69 6c |ose a fo|rmat fil|
|00005310| 65 2e 22 2c 66 6d 74 66 | 69 6c 65 29 3b 0d 09 09 |e.",fmtf|ile);...|
|00005320| 50 61 72 61 6d 54 65 78 | 74 28 63 32 70 73 74 72 |ParamTex|t(c2pstr|
|00005330| 28 73 74 72 69 6e 67 29 | 2c 4e 55 4c 4c 2c 4e 55 |(string)|,NULL,NU|
|00005340| 4c 4c 2c 4e 55 4c 4c 29 | 3b 0d 09 09 41 6c 65 72 |LL,NULL)|;...Aler|
|00005350| 74 28 2d 31 36 34 30 35 | 2c 4e 55 4c 4c 29 3b 0d |t(-16405|,NULL);.|
|00005360| 09 20 20 20 20 53 46 47 | 65 74 46 69 6c 65 28 77 |. SFG|etFile(w|
|00005370| 68 65 72 65 2c 4e 55 4c | 4c 2c 4e 55 4c 4c 2c 31 |here,NUL|L,NULL,1|
|00005380| 2c 26 74 79 70 65 2c 4e | 55 4c 4c 2c 26 72 65 70 |,&type,N|ULL,&rep|
|00005390| 6c 79 29 3b 0d 09 09 69 | 66 28 21 72 65 70 6c 79 |ly);...i|f(!reply|
|000053a0| 2e 67 6f 6f 64 29 75 73 | 61 67 65 28 29 3b 0d 09 |.good)us|age();..|
|000053b0| 09 70 32 63 73 74 72 28 | 72 65 70 6c 79 2e 66 4e |.p2cstr(|reply.fN|
|000053c0| 61 6d 65 29 3b 0d 09 09 | 66 6d 74 66 69 6c 65 3d |ame);...|fmtfile=|
|000053d0| 6d 61 6c 6c 6f 63 28 31 | 2b 73 74 72 6c 65 6e 28 |malloc(1|+strlen(|
|000053e0| 28 63 68 61 72 20 2a 29 | 72 65 70 6c 79 2e 66 4e |(char *)|reply.fN|
|000053f0| 61 6d 65 29 29 3b 0d 09 | 09 73 74 72 63 70 79 28 |ame));..|.strcpy(|
|00005400| 66 6d 74 66 69 6c 65 2c | 28 63 68 61 72 20 2a 29 |fmtfile,|(char *)|
|00005410| 72 65 70 6c 79 2e 66 4e | 61 6d 65 29 3b 0d 09 09 |reply.fN|ame);...|
|00005420| 63 32 70 73 74 72 28 28 | 63 68 61 72 20 2a 29 72 |c2pstr((|char *)r|
|00005430| 65 70 6c 79 2e 66 4e 61 | 6d 65 29 3b 0d 09 09 53 |eply.fNa|me);...S|
|00005440| 65 74 56 6f 6c 28 4e 55 | 4c 4c 2c 72 65 70 6c 79 |etVol(NU|LL,reply|
|00005450| 2e 76 52 65 66 4e 75 6d | 29 3b 09 2f 2a 20 6c 6f |.vRefNum|);./* lo|
|00005460| 6f 6b 20 69 6e 20 74 68 | 61 74 20 66 6f 6c 64 65 |ok in th|at folde|
|00005470| 72 20 2a 2f 0d 09 09 66 | 70 66 20 3d 20 66 6f 70 |r */...f|pf = fop|
|00005480| 65 6e 28 66 6d 74 66 69 | 6c 65 2c 20 22 72 22 29 |en(fmtfi|le, "r")|
|00005490| 3b 0d 09 20 20 20 20 7d | 0d 23 65 6e 64 69 66 0d |;.. }|.#endif.|
|000054a0| 09 69 66 28 66 70 66 20 | 21 3d 20 4e 55 4c 4c 29 |.if(fpf |!= NULL)|
|000054b0| 20 7b 0d 0d 09 20 20 20 | 20 2f 2a 20 52 65 61 64 | {... | /* Read|
|000054c0| 20 72 65 63 6f 72 64 2d | 66 6f 72 6d 61 74 20 73 | record-|format s|
|000054d0| 74 72 69 6e 67 20 2a 2f | 0d 09 20 20 20 20 69 66 |tring */|.. if|
|000054e0| 28 28 66 67 65 74 73 28 | 66 6d 74 2c 20 32 35 30 |((fgets(|fmt, 250|
|000054f0| 2c 20 66 70 66 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |, fpf)) |== NULL)|
|00005500| 20 7b 0d 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 | {...fpr|intf(std|
|00005510| 65 72 72 2c 20 22 45 72 | 72 6f 72 20 72 65 61 64 |err, "Er|ror read|
|00005520| 69 6e 67 20 66 6f 72 6d | 61 74 20 73 70 65 63 69 |ing form|at speci|
|00005530| 66 69 63 61 74 69 6f 6e | 20 66 69 6c 65 20 5c 22 |fication| file \"|
|00005540| 25 73 5c 22 2e 5c 6e 22 | 2c 20 66 6d 74 66 69 6c |%s\".\n"|, fmtfil|
|00005550| 65 29 3b 0d 23 69 66 64 | 65 66 20 4d 41 43 0d 09 |e);.#ifd|ef MAC..|
|00005560| 09 20 20 20 20 70 72 69 | 6e 74 66 28 22 43 6c 69 |. pri|ntf("Cli|
|00005570| 63 6b 20 74 68 69 73 20 | 77 69 6e 64 6f 77 20 74 |ck this |window t|
|00005580| 6f 20 65 78 69 74 3a 5c | 6e 22 29 3b 0d 09 09 20 |o exit:\|n");... |
|00005590| 20 20 20 46 6c 75 73 68 | 45 76 65 6e 74 73 28 65 | Flush|Events(e|
|000055a0| 76 65 72 79 45 76 65 6e | 74 2c 30 29 3b 0d 09 09 |veryEven|t,0);...|
|000055b0| 20 20 20 20 77 68 69 6c | 65 28 21 47 65 74 4e 65 | whil|e(!GetNe|
|000055c0| 78 74 45 76 65 6e 74 28 | 65 76 65 72 79 45 76 65 |xtEvent(|everyEve|
|000055d0| 6e 74 2c 26 65 76 65 6e | 74 29 29 20 3b 0d 23 65 |nt,&even|t)) ;.#e|
|000055e0| 6e 64 69 66 0d 09 09 65 | 78 69 74 28 31 29 3b 0d |ndif...e|xit(1);.|
|000055f0| 09 20 20 20 20 7d 0d 09 | 20 20 20 20 66 4c 69 6e |. }..| fLin|
|00005600| 65 42 75 66 66 65 72 5b | 30 5d 3d 30 3b 0d 09 20 |eBuffer[|0]=0;.. |
|00005610| 20 20 20 66 67 65 74 73 | 28 66 4c 69 6e 65 42 75 | fgets|(fLineBu|
|00005620| 66 66 65 72 2c 20 32 35 | 30 2c 20 66 70 66 29 3b |ffer, 25|0, fpf);|
|00005630| 09 09 2f 2a 20 72 65 61 | 64 20 6e 65 78 74 20 6c |../* rea|d next l|
|00005640| 69 6e 65 20 2a 2f 0d 09 | 09 0d 09 20 20 20 20 2f |ine */..|... /|
|00005650| 2a 20 52 65 61 64 20 6f | 70 74 69 6f 6e 61 6c 20 |* Read o|ptional |
|00005660| 66 69 6c 65 20 74 79 70 | 65 20 73 70 65 63 69 66 |file typ|e specif|
|00005670| 69 63 61 74 69 6f 6e 20 | 2a 2f 0d 09 20 20 20 20 |ication |*/.. |
|00005680| 69 66 28 73 74 72 6e 63 | 6d 70 28 66 4c 69 6e 65 |if(strnc|mp(fLine|
|00005690| 42 75 66 66 65 72 2c 20 | 22 24 4d 22 2c 20 32 29 |Buffer, |"$M", 2)|
|000056a0| 20 3d 3d 20 30 29 20 7b | 0d 23 69 66 64 65 66 20 | == 0) {|.#ifdef |
|000056b0| 4d 41 43 0d 09 09 20 20 | 20 20 73 74 72 6e 63 70 |MAC... | strncp|
|000056c0| 79 28 28 63 68 61 72 20 | 2a 29 26 74 79 70 65 2c |y((char |*)&type,|
|000056d0| 26 66 4c 69 6e 65 42 75 | 66 66 65 72 5b 32 5d 2c |&fLineBu|ffer[2],|
|000056e0| 34 29 3b 0d 09 09 20 20 | 20 20 73 74 72 6e 63 70 |4);... | strncp|
|000056f0| 79 28 28 63 68 61 72 20 | 2a 29 26 63 72 65 61 74 |y((char |*)&creat|
|00005700| 6f 72 2c 26 66 4c 69 6e | 65 42 75 66 66 65 72 5b |or,&fLin|eBuffer[|
|00005710| 36 5d 2c 34 29 3b 0d 23 | 65 6e 64 69 66 0d 09 20 |6],4);.#|endif.. |
|00005720| 20 20 20 09 66 4c 69 6e | 65 42 75 66 66 65 72 5b | .fLin|eBuffer[|
|00005730| 30 5d 3d 30 3b 0d 09 20 | 20 20 20 09 66 67 65 74 |0]=0;.. | .fget|
|00005740| 73 28 66 4c 69 6e 65 42 | 75 66 66 65 72 2c 20 32 |s(fLineB|uffer, 2|
|00005750| 35 30 2c 20 66 70 66 29 | 3b 09 2f 2a 20 72 65 61 |50, fpf)|;./* rea|
|00005760| 64 20 6e 65 78 74 20 6c | 69 6e 65 20 2a 2f 0d 09 |d next l|ine */..|
|00005770| 20 20 20 20 7d 0d 23 69 | 66 64 65 66 20 4d 41 43 | }.#i|fdef MAC|
|00005780| 0d 09 09 2f 2a 20 53 65 | 74 20 74 68 65 20 6f 75 |.../* Se|t the ou|
|00005790| 74 70 75 74 20 66 69 6c | 65 27 73 20 4d 61 63 69 |tput fil|e's Maci|
|000057a0| 6e 74 6f 73 68 20 74 79 | 70 65 20 61 6e 64 20 63 |ntosh ty|pe and c|
|000057b0| 72 65 61 74 6f 72 2e 20 | 2a 2f 0d 09 09 47 65 74 |reator. |*/...Get|
|000057c0| 56 6f 6c 28 4e 55 4c 4c | 2c 26 76 52 65 66 4e 75 |Vol(NULL|,&vRefNu|
|000057d0| 6d 29 3b 0d 09 09 53 65 | 74 56 6f 6c 28 4e 55 4c |m);...Se|tVol(NUL|
|000057e0| 4c 2c 6f 75 74 70 75 74 | 56 52 65 66 4e 75 6d 29 |L,output|VRefNum)|
|000057f0| 3b 09 2f 2a 20 6c 6f 6f | 6b 20 69 6e 20 74 68 61 |;./* loo|k in tha|
|00005800| 74 20 66 6f 6c 64 65 72 | 20 2a 2f 0d 09 09 53 65 |t folder| */...Se|
|00005810| 74 46 69 6c 65 49 6e 66 | 6f 28 61 72 67 76 5b 32 |tFileInf|o(argv[2|
|00005820| 5d 2c 74 79 70 65 2c 63 | 72 65 61 74 6f 72 29 3b |],type,c|reator);|
|00005830| 0d 09 09 53 65 74 56 6f | 6c 28 4e 55 4c 4c 2c 76 |...SetVo|l(NULL,v|
|00005840| 52 65 66 4e 75 6d 29 3b | 0d 23 65 6e 64 69 66 0d |RefNum);|.#endif.|
|00005850| 0d 09 20 20 20 20 2f 2a | 20 52 65 61 64 20 6f 70 |.. /*| Read op|
|00005860| 74 69 6f 6e 61 6c 20 70 | 72 6f 6c 6f 67 20 69 6e |tional p|rolog in|
|00005870| 74 6f 20 6f 75 74 70 75 | 74 20 66 69 6c 65 20 2a |to outpu|t file *|
|00005880| 2f 0d 09 20 20 20 20 69 | 66 28 73 74 72 6e 63 6d |/.. i|f(strncm|
|00005890| 70 28 66 4c 69 6e 65 42 | 75 66 66 65 72 2c 20 22 |p(fLineB|uffer, "|
|000058a0| 24 50 22 2c 20 32 29 20 | 3d 3d 20 30 29 20 7b 0d |$P", 2) |== 0) {.|
|000058b0| 09 09 71 75 6f 74 65 20 | 3d 20 66 4c 69 6e 65 42 |..quote |= fLineB|
|000058c0| 75 66 66 65 72 5b 32 5d | 3b 09 09 2f 2a 20 73 65 |uffer[2]|;../* se|
|000058d0| 74 20 71 75 6f 74 65 20 | 63 68 61 72 20 66 6f 72 |t quote |char for|
|000058e0| 20 70 72 6f 6c 6f 67 20 | 2a 2f 0d 09 09 62 70 74 | prolog |*/...bpt|
|000058f0| 72 20 3d 20 26 66 4c 69 | 6e 65 42 75 66 66 65 72 |r = &fLi|neBuffer|
|00005900| 5b 33 5d 3b 0d 09 09 77 | 68 69 6c 65 28 31 29 7b |[3];...w|hile(1){|
|00005910| 0d 09 09 09 20 20 20 20 | 77 68 69 6c 65 28 28 28 |.... |while(((|
|00005920| 63 20 3d 20 2a 62 70 74 | 72 2b 2b 29 20 21 3d 20 |c = *bpt|r++) != |
|00005930| 71 75 6f 74 65 29 20 26 | 26 20 63 20 21 3d 20 27 |quote) &|& c != '|
|00005940| 5c 30 27 29 0d 09 09 09 | 09 70 75 74 63 28 63 2c |\0')....|.putc(c,|
|00005950| 20 66 70 6f 29 3b 0d 09 | 09 09 20 20 20 20 69 66 | fpo);..|.. if|
|00005960| 28 63 20 3d 3d 20 71 75 | 6f 74 65 29 20 62 72 65 |(c == qu|ote) bre|
|00005970| 61 6b 3b 0d 09 09 09 20 | 20 20 20 69 66 28 66 67 |ak;.... | if(fg|
|00005980| 65 74 73 28 66 4c 69 6e | 65 42 75 66 66 65 72 2c |ets(fLin|eBuffer,|
|00005990| 20 32 35 30 2c 20 66 70 | 66 29 20 3d 3d 20 4e 55 | 250, fp|f) == NU|
|000059a0| 4c 4c 29 20 62 72 65 61 | 6b 3b 0d 09 09 09 20 20 |LL) brea|k;.... |
|000059b0| 20 20 62 70 74 72 20 3d | 20 66 4c 69 6e 65 42 75 | bptr =| fLineBu|
|000059c0| 66 66 65 72 3b 0d 09 09 | 7d 0d 09 09 66 4c 69 6e |ffer;...|}...fLin|
|000059d0| 65 42 75 66 66 65 72 5b | 30 5d 3d 30 3b 0d 09 09 |eBuffer[|0]=0;...|
|000059e0| 66 67 65 74 73 28 66 4c | 69 6e 65 42 75 66 66 65 |fgets(fL|ineBuffe|
|000059f0| 72 2c 20 32 35 30 2c 20 | 66 70 66 29 3b 09 2f 2a |r, 250, |fpf);./*|
|00005a00| 20 72 65 61 64 20 6e 65 | 78 74 20 6c 69 6e 65 20 | read ne|xt line |
|00005a10| 2a 2f 0d 09 20 20 20 20 | 7d 0d 09 20 20 20 20 2f |*/.. |}.. /|
|00005a20| 2a 20 50 72 6f 6c 6f 67 | 20 64 6f 6e 65 2c 20 62 |* Prolog| done, b|
|00005a30| 75 74 20 6b 65 65 70 20 | 46 49 4c 45 20 2a 66 70 |ut keep |FILE *fp|
|00005a40| 66 20 6f 70 65 6e 20 66 | 6f 72 20 65 70 69 6c 6f |f open f|or epilo|
|00005a50| 67 20 61 74 20 74 68 65 | 20 65 6e 64 20 2a 2f 0d |g at the| end */.|
|00005a60| 09 7d 20 65 6c 73 65 20 | 7b 0d 09 20 20 20 20 66 |.} else |{.. f|
|00005a70| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00005a80| 43 61 6e 27 74 20 6f 70 | 65 6e 20 63 6f 6e 76 65 |Can't op|en conve|
|00005a90| 72 73 69 6f 6e 20 66 6f | 72 6d 61 74 20 73 70 65 |rsion fo|rmat spe|
|00005aa0| 63 69 66 69 63 61 74 69 | 6f 6e 20 66 69 6c 65 20 |cificati|on file |
|00005ab0| 5c 22 25 73 5c 22 2e 5c | 6e 22 2c 0d 09 09 09 09 |\"%s\".\|n",.....|
|00005ac0| 66 6d 74 66 69 6c 65 29 | 3b 0d 23 69 66 64 65 66 |fmtfile)|;.#ifdef|
|00005ad0| 20 4d 41 43 0d 09 09 70 | 72 69 6e 74 66 28 22 43 | MAC...p|rintf("C|
|00005ae0| 6c 69 63 6b 20 74 68 69 | 73 20 77 69 6e 64 6f 77 |lick thi|s window|
|00005af0| 20 74 6f 20 65 78 69 74 | 3a 5c 6e 22 29 3b 0d 09 | to exit|:\n");..|
|00005b00| 09 46 6c 75 73 68 45 76 | 65 6e 74 73 28 65 76 65 |.FlushEv|ents(eve|
|00005b10| 72 79 45 76 65 6e 74 2c | 30 29 3b 0d 09 09 77 68 |ryEvent,|0);...wh|
|00005b20| 69 6c 65 28 21 47 65 74 | 4e 65 78 74 45 76 65 6e |ile(!Get|NextEven|
|00005b30| 74 28 65 76 65 72 79 45 | 76 65 6e 74 2c 26 65 76 |t(everyE|vent,&ev|
|00005b40| 65 6e 74 29 29 20 3b 0d | 23 65 6e 64 69 66 0d 09 |ent)) ;.|#endif..|
|00005b50| 20 20 20 20 65 78 69 74 | 28 31 29 3b 0d 09 7d 0d | exit|(1);..}.|
|00005b60| 0d 0d 09 2f 2a 20 54 68 | 65 20 70 72 6f 67 72 61 |.../* Th|e progra|
|00005b70| 6d 20 72 65 6c 69 65 73 | 20 6f 6e 20 74 68 65 20 |m relies| on the |
|00005b80| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 22 2d 2d 2d |presence| of "---|
|00005b90| 2d 2d 2d 22 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |---" to |indicate|
|00005ba0| 20 74 68 65 0d 09 20 2a | 20 73 74 61 72 74 20 6f | the.. *| start o|
|00005bb0| 66 20 72 65 63 6f 72 64 | 73 2e 20 20 54 68 69 73 |f record|s. This|
|00005bc0| 20 63 6f 75 6c 64 20 62 | 65 20 61 20 62 61 64 20 | could b|e a bad |
|00005bd0| 74 68 69 6e 67 20 74 6f | 20 72 65 6c 79 20 6f 6e |thing to| rely on|
|00005be0| 2e 0d 09 20 2a 2f 0d 09 | 77 68 69 6c 65 28 20 28 |... */..|while( (|
|00005bf0| 20 66 67 65 74 73 28 6c | 69 6e 65 62 75 66 2c 20 | fgets(l|inebuf, |
|00005c00| 32 35 30 2c 20 66 70 69 | 29 20 29 20 21 3d 20 4e |250, fpi|) ) != N|
|00005c10| 55 4c 4c 20 29 20 7b 0d | 09 20 20 20 20 6c 69 6e |ULL ) {.|. lin|
|00005c20| 65 63 6e 74 2b 2b 3b 0d | 09 20 20 20 20 69 66 28 |ecnt++;.|. if(|
|00005c30| 73 74 72 6e 63 6d 70 28 | 6c 69 6e 65 62 75 66 2c |strncmp(|linebuf,|
|00005c40| 20 22 2d 2d 2d 2d 2d 22 | 2c 20 35 29 20 3d 3d 20 | "-----"|, 5) == |
|00005c50| 30 29 0d 09 09 62 72 65 | 61 6b 3b 09 09 2f 2a 20 |0)...bre|ak;../* |
|00005c60| 73 74 61 72 74 20 6f 66 | 20 72 65 63 6f 72 64 73 |start of| records|
|00005c70| 20 64 65 74 65 63 74 65 | 64 20 2a 2f 0d 09 7d 0d | detecte|d */..}.|
|00005c80| 0d 09 2f 2a 20 2d 2d 2d | 2d 20 52 65 61 64 20 61 |../* ---|- Read a|
|00005c90| 20 6c 69 6e 65 20 61 6e | 64 20 73 65 70 61 72 61 | line an|d separa|
|00005ca0| 74 65 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 69 6e |te compo|nents in|
|00005cb0| 74 6f 20 70 72 6f 70 65 | 72 20 70 6c 61 63 65 73 |to prope|r places|
|00005cc0| 20 2d 2d 2d 2d 2d 2d 20 | 2a 2f 0d 09 77 68 69 6c | ------ |*/..whil|
|00005cd0| 65 28 28 66 67 65 74 73 | 28 6c 69 6e 65 62 75 66 |e((fgets|(linebuf|
|00005ce0| 2c 20 32 35 30 2c 20 66 | 70 69 29 29 20 21 3d 20 |, 250, f|pi)) != |
|00005cf0| 4e 55 4c 4c 29 20 7b 0d | 09 20 20 20 20 6c 69 6e |NULL) {.|. lin|
|00005d00| 65 63 6e 74 2b 2b 3b 0d | 09 20 20 20 20 63 68 61 |ecnt++;.|. cha|
|00005d10| 72 63 6e 74 20 3d 20 73 | 74 72 6c 65 6e 28 6c 69 |rcnt = s|trlen(li|
|00005d20| 6e 65 62 75 66 29 3b 0d | 09 20 20 20 20 69 66 28 |nebuf);.|. if(|
|00005d30| 6c 69 6e 65 62 75 66 5b | 30 5d 20 3d 3d 20 27 23 |linebuf[|0] == '#|
|00005d40| 27 20 7c 7c 20 6c 69 6e | 65 62 75 66 5b 30 5d 20 |' || lin|ebuf[0] |
|00005d50| 3d 3d 20 27 3b 27 20 7c | 7c 20 63 68 61 72 63 6e |== ';' ||| charcn|
|00005d60| 74 20 3d 3d 20 30 29 0d | 09 09 63 6f 6e 74 69 6e |t == 0).|..contin|
|00005d70| 75 65 3b 09 2f 2a 20 62 | 6c 61 6e 6b 20 6f 72 20 |ue;./* b|lank or |
|00005d80| 63 6f 6d 6d 65 6e 74 20 | 6c 69 6e 65 73 20 2a 2f |comment |lines */|
|00005d90| 0d 09 20 20 20 20 69 66 | 28 73 74 72 6e 63 6d 70 |.. if|(strncmp|
|00005da0| 28 6c 69 6e 65 62 75 66 | 2c 20 22 2d 2d 2d 2d 2d |(linebuf|, "-----|
|00005db0| 22 2c 20 35 29 20 3d 3d | 20 30 29 0d 09 09 62 72 |", 5) ==| 0)...br|
|00005dc0| 65 61 6b 3b 09 09 2f 2a | 20 65 6e 64 20 6f 66 20 |eak;../*| end of |
|00005dd0| 72 65 63 6f 72 64 73 20 | 64 65 74 65 63 74 65 64 |records |detected|
|00005de0| 20 2a 2f 0d 09 20 20 20 | 20 69 66 28 63 68 61 72 | */.. | if(char|
|00005df0| 63 6e 74 20 3c 20 35 29 | 20 7b 0d 09 09 66 70 72 |cnt < 5)| {...fpr|
|00005e00| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 25 63 22 |intf(std|err,"%c"|
|00005e10| 2c 20 6c 69 6e 65 62 75 | 66 5b 30 5d 29 3b 20 66 |, linebu|f[0]); f|
|00005e20| 66 6c 75 73 68 28 73 74 | 64 65 72 72 29 3b 0d 09 |flush(st|derr);..|
|00005e30| 09 63 6f 6e 74 69 6e 75 | 65 3b 09 2f 2a 20 6d 75 |.continu|e;./* mu|
|00005e40| 73 74 20 62 65 20 41 41 | 41 2c 20 42 42 42 2c 20 |st be AA|A, BBB, |
|00005e50| 2e 2e 2e 20 2a 2f 0d 09 | 20 20 20 20 7d 0d 0d 09 |... */..| }...|
|00005e60| 20 20 20 20 2f 2a 20 43 | 6c 65 61 72 20 61 6c 6c | /* C|lear all|
|00005e70| 20 73 74 6f 72 61 67 65 | 20 61 72 72 61 79 73 2e | storage| arrays.|
|00005e80| 20 2a 2f 0d 09 20 20 20 | 20 6c 61 73 74 6e 61 6d | */.. | lastnam|
|00005e90| 65 5b 30 5d 20 3d 20 66 | 69 72 73 74 69 6e 69 5b |e[0] = f|irstini[|
|00005ea0| 30 5d 20 3d 20 61 66 66 | 69 6c 69 61 74 69 6f 6e |0] = aff|iliation|
|00005eb0| 5b 30 5d 20 3d 20 65 6d | 61 64 64 72 65 73 73 5b |[0] = em|address[|
|00005ec0| 30 5d 20 3d 20 27 5c 30 | 27 3b 0d 0d 09 20 20 20 |0] = '\0|';... |
|00005ed0| 20 72 65 63 6f 72 64 63 | 6e 74 2b 2b 3b 09 2f 2a | recordc|nt++;./*|
|00005ee0| 20 6f 6e 6c 79 20 63 6f | 75 6e 74 20 72 65 61 6c | only co|unt real|
|00005ef0| 20 61 64 64 72 65 73 73 | 20 72 65 63 6f 72 64 20 | address| record |
|00005f00| 2a 2f 0d 09 20 20 20 20 | 2f 2a 20 57 65 27 76 65 |*/.. |/* We've|
|00005f10| 20 67 6f 74 20 61 20 72 | 65 61 73 6f 6e 61 62 6c | got a r|easonabl|
|00005f20| 65 20 6c 69 6e 65 2e 20 | 20 46 69 72 73 74 2c 20 |e line. | First, |
|00005f30| 67 65 74 20 74 68 65 20 | 6c 61 73 74 6e 61 6d 65 |get the |lastname|
|00005f40| 20 2a 2f 0d 09 20 20 20 | 20 66 69 6e 64 65 78 28 | */.. | findex(|
|00005f50| 6c 69 6e 65 62 75 66 2c | 20 27 2c 27 29 3b 09 09 |linebuf,| ',');..|
|00005f60| 2f 2a 20 63 68 65 63 6b | 20 69 66 20 61 20 63 6f |/* check| if a co|
|00005f70| 6d 6d 61 20 69 73 20 70 | 72 65 73 65 6e 74 20 2a |mma is p|resent *|
|00005f80| 2f 0d 09 20 20 20 20 73 | 73 63 61 6e 66 28 6c 69 |/.. s|scanf(li|
|00005f90| 6e 65 62 75 66 2c 20 22 | 25 5b 5e 2c 5d 22 2c 20 |nebuf, "|%[^,]", |
|00005fa0| 6c 61 73 74 6e 61 6d 65 | 29 3b 09 2f 2a 20 72 65 |lastname|);./* re|
|00005fb0| 61 64 20 74 6f 20 62 65 | 66 6f 72 65 20 63 6f 6d |ad to be|fore com|
|00005fc0| 6d 61 20 2a 2f 0d 0d 09 | 20 20 20 20 2f 2a 20 47 |ma */...| /* G|
|00005fd0| 65 74 20 74 68 65 20 66 | 69 72 73 74 6e 61 6d 65 |et the f|irstname|
|00005fe0| 20 70 6c 75 73 20 69 6e | 69 74 69 61 6c 20 2a 2f | plus in|itial */|
|00005ff0| 0d 09 20 20 20 20 73 74 | 72 6e 63 70 79 28 74 6d |.. st|rncpy(tm|
|00006000| 70 62 75 66 2c 20 6c 69 | 6e 65 62 75 66 2c 20 32 |pbuf, li|nebuf, 2|
|00006010| 35 30 29 3b 0d 09 20 20 | 20 20 62 70 74 72 20 3d |50);.. | bptr =|
|00006020| 20 66 69 6e 64 65 78 28 | 74 6d 70 62 75 66 2c 20 | findex(|tmpbuf, |
|00006030| 27 2c 27 29 3b 0d 09 20 | 20 20 20 77 68 69 6c 65 |',');.. | while|
|00006040| 28 28 63 20 3d 20 2a 2b | 2b 62 70 74 72 29 20 3d |((c = *+|+bptr) =|
|00006050| 3d 20 27 20 27 20 7c 7c | 20 63 20 3d 3d 20 27 5c |= ' ' ||| c == '\|
|00006060| 74 27 29 20 3b 09 2f 2a | 20 6e 6f 6e 2d 73 70 61 |t') ;./*| non-spa|
|00006070| 63 65 20 61 66 74 65 72 | 20 63 6f 6d 6d 61 20 2a |ce after| comma *|
|00006080| 2f 0d 09 20 20 20 20 65 | 70 74 72 20 3d 20 66 69 |/.. e|ptr = fi|
|00006090| 6e 64 65 78 28 74 6d 70 | 62 75 66 2c 20 27 28 27 |ndex(tmp|buf, '('|
|000060a0| 29 3b 0d 09 20 20 20 20 | 77 68 69 6c 65 28 28 63 |);.. |while((c|
|000060b0| 20 3d 20 2a 2d 2d 65 70 | 74 72 29 20 3d 3d 20 27 | = *--ep|tr) == '|
|000060c0| 20 27 20 7c 7c 20 63 20 | 3d 3d 20 27 5c 74 27 29 | ' || c |== '\t')|
|000060d0| 20 3b 09 2f 2a 20 6e 6f | 6e 2d 73 70 61 63 65 20 | ;./* no|n-space |
|000060e0| 62 65 66 6f 72 65 20 27 | 28 27 20 2a 2f 0d 09 20 |before '|(' */.. |
|000060f0| 20 20 20 69 66 28 65 70 | 74 72 20 3e 3d 20 62 70 | if(ep|tr >= bp|
|00006100| 74 72 29 20 7b 0d 09 09 | 65 70 74 72 2b 2b 3b 20 |tr) {...|eptr++; |
|00006110| 2a 65 70 74 72 20 3d 20 | 27 5c 30 27 3b 09 09 2f |*eptr = |'\0';../|
|00006120| 2a 20 6d 61 6b 65 20 73 | 75 72 65 20 74 68 65 72 |* make s|ure ther|
|00006130| 65 20 69 73 20 66 69 72 | 73 74 6e 61 6d 65 20 70 |e is fir|stname p|
|00006140| 61 72 74 20 2a 2f 0d 09 | 09 73 74 72 6e 63 70 79 |art */..|.strncpy|
|00006150| 28 66 69 72 73 74 69 6e | 69 2c 20 62 70 74 72 2c |(firstin|i, bptr,|
|00006160| 20 36 30 29 3b 0d 09 20 | 20 20 20 7d 20 65 6c 73 | 60);.. | } els|
|00006170| 65 0d 09 09 73 74 72 63 | 70 79 28 66 69 72 73 74 |e...strc|py(first|
|00006180| 69 6e 69 2c 20 22 22 29 | 3b 09 09 2f 2a 20 6e 6f |ini, "")|;../* no|
|00006190| 20 66 69 72 73 74 6e 61 | 6d 65 2f 69 6e 69 74 69 | firstna|me/initi|
|000061a0| 61 6c 20 2a 2f 0d 0d 09 | 20 20 20 20 2f 2a 20 47 |al */...| /* G|
|000061b0| 65 74 20 69 6e 73 74 69 | 74 75 74 69 6f 6e 61 6c |et insti|tutional|
|000061c0| 20 61 66 66 69 6c 69 63 | 61 74 69 6f 6e 20 65 6e | affilic|ation en|
|000061d0| 63 6c 6f 73 65 64 20 69 | 6e 20 62 72 61 63 6b 65 |closed i|n bracke|
|000061e0| 74 20 2a 2f 0d 09 20 20 | 20 20 73 74 72 6e 63 70 |t */.. | strncp|
|000061f0| 79 28 74 6d 70 62 75 66 | 2c 20 6c 69 6e 65 62 75 |y(tmpbuf|, linebu|
|00006200| 66 2c 20 32 35 30 29 3b | 0d 09 20 20 20 20 62 70 |f, 250);|.. bp|
|00006210| 74 72 20 3d 20 66 69 6e | 64 65 78 28 74 6d 70 62 |tr = fin|dex(tmpb|
|00006220| 75 66 2c 20 27 28 27 29 | 3b 0d 09 20 20 20 20 65 |uf, '(')|;.. e|
|00006230| 70 74 72 20 3d 20 66 69 | 6e 64 65 78 28 74 6d 70 |ptr = fi|ndex(tmp|
|00006240| 62 75 66 2c 20 27 29 27 | 29 3b 0d 09 20 20 20 20 |buf, ')'|);.. |
|00006250| 62 70 74 72 2b 2b 3b 09 | 09 2f 2a 20 63 68 61 72 |bptr++;.|./* char|
|00006260| 20 61 66 74 65 72 20 27 | 28 27 20 2a 2f 0d 09 20 | after '|(' */.. |
|00006270| 20 20 20 2a 65 70 74 72 | 20 3d 20 27 5c 30 27 3b | *eptr| = '\0';|
|00006280| 09 2f 2a 20 74 65 72 6d | 69 6e 61 74 65 20 73 74 |./* term|inate st|
|00006290| 72 69 6e 67 20 61 74 20 | 27 29 27 20 2a 2f 0d 09 |ring at |')' */..|
|000062a0| 20 20 20 20 73 74 72 6e | 63 70 79 28 61 66 66 69 | strn|cpy(affi|
|000062b0| 6c 69 61 74 69 6f 6e 2c | 20 62 70 74 72 2c 20 36 |liation,| bptr, 6|
|000062c0| 30 29 3b 0d 0d 09 20 20 | 20 20 2f 2a 20 47 65 74 |0);... | /* Get|
|000062d0| 20 28 31 2d 73 74 20 70 | 61 72 74 20 6f 66 29 20 | (1-st p|art of) |
|000062e0| 45 2d 6d 61 69 6c 20 61 | 64 64 72 65 73 73 2e 20 |E-mail a|ddress. |
|000062f0| 20 49 74 20 73 68 6f 75 | 6c 64 20 61 6c 73 6f 20 | It shou|ld also |
|00006300| 77 6f 72 6b 0d 09 20 20 | 20 20 20 20 20 65 76 65 |work.. | eve|
|00006310| 6e 20 69 66 20 74 68 65 | 20 65 2d 6d 61 69 6c 20 |n if the| e-mail |
|00006320| 61 64 64 72 65 73 73 20 | 69 73 20 65 6e 74 69 72 |address |is entir|
|00006330| 65 6c 79 20 6f 6e 20 74 | 68 65 20 63 6f 6e 74 69 |ely on t|he conti|
|00006340| 6e 75 61 74 69 6f 6e 0d | 09 20 20 20 20 20 20 20 |nuation.|. |
|00006350| 6c 69 6e 65 20 61 6e 64 | 20 74 68 65 72 65 20 69 |line and| there i|
|00006360| 73 20 6e 6f 74 68 69 6e | 67 20 61 66 74 65 72 20 |s nothin|g after |
|00006370| 74 68 65 20 63 6c 6f 73 | 69 6e 67 20 62 72 61 63 |the clos|ing brac|
|00006380| 6b 65 74 2e 0d 09 20 20 | 20 20 20 2a 2f 0d 09 20 |ket... | */.. |
|00006390| 20 20 20 65 70 74 72 2b | 2b 3b 09 2f 2a 20 65 70 | eptr+|+;./* ep|
|000063a0| 74 72 20 70 6f 69 6e 74 | 69 6e 67 20 74 6f 20 74 |tr point|ing to t|
|000063b0| 6d 70 62 75 66 20 69 73 | 20 73 74 69 6c 6c 20 67 |mpbuf is| still g|
|000063c0| 6f 6f 64 20 2a 2f 0d 09 | 20 20 20 20 73 73 63 61 |ood */..| ssca|
|000063d0| 6e 66 28 65 70 74 72 2c | 20 22 25 73 22 2c 20 65 |nf(eptr,| "%s", e|
|000063e0| 6d 61 64 64 72 65 73 73 | 29 3b 09 2f 2a 20 72 65 |maddress|);./* re|
|000063f0| 61 64 20 65 6d 61 69 6c | 20 61 64 64 72 65 73 73 |ad email| address|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.